Skip to content

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

Open
zz1126 wants to merge 5 commits into
jaredpalmer:mainfrom
zz1126:main
Open

Feat: Improve onReset to get the new values provided by resetForm#4024
zz1126 wants to merge 5 commits into
jaredpalmer:mainfrom
zz1126:main

Conversation

@zz1126

@zz1126 zz1126 commented Feb 6, 2025

Copy link
Copy Markdown

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

resetForm({values: newInitialValues});

const onReset = (currentValues, imperativeMethods, initialValues)

@changeset-bot

changeset-bot Bot commented Feb 6, 2025

Copy link
Copy Markdown

🦋 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

@vercel

vercel Bot commented Feb 6, 2025

Copy link
Copy Markdown

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

@codesandbox-ci

codesandbox-ci Bot commented Feb 6, 2025

Copy link
Copy Markdown

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