Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Improve onReset to get the new values provided by resetForm #4024

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

zz1126
Copy link

@zz1126 zz1126 commented Feb 6, 2025

Sometimes need to get the new initial values provided by resetForm in onReset for example:

resetForm({values: newInitialValues});

const onReset = (currentValues, imperativeMethods, initialValues)

Copy link

changeset-bot bot commented Feb 6, 2025

🦋 Changeset detected

Latest commit: 8bdc214

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
formik Major
formik-native Patch
fdocs3 Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Feb 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
formik-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2025 2:21pm

Copy link

codesandbox-ci bot commented Feb 6, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@zz1126 zz1126 reopened this Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants