Feat: Improve onReset to get the new values provided by resetForm by zz1126 · Pull Request #4024 · jaredpalmer/formik · GitHub
Skip to content

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

Open
zz1126 wants to merge 5 commits intojaredpalmer:mainfrom
zz1126:main
Open

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

Conversation

@zz1126
Copy link
Copy Markdown

@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)

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 6, 2025

@vercel
Copy link
Copy Markdown

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

@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci Bot commented Feb 6, 2025

@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