-
Notifications
You must be signed in to change notification settings - Fork 56
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
Omit selected fields from being persisted #6
base: master
Are you sure you want to change the base?
Conversation
Just realised I should ignore touched and errors for those fields. Ill add this |
@jaredpalmer What do you think of this? |
@Ciaran0 can you resolve conflicts? |
Hi @dzienisz, |
…into ignore-selected-fields # Conflicts: # package.json # src/formik-persist.tsx # test/formik-persist.test.tsx
@jaredpalmer Thanks for approving this 😄 |
This is useful. Is this going to be merged? |
I need it to ignore isSubmitting... merge when?? |
^^ that and need to ignore Password fields too. If this doesn't come out soon I'll just have to not use this and roll my own. |
Men this only works for values, touched, and errors but not for other fields like isSubmitting |
why this is not merged yeat????? cmonnn |
hahahaha Que mal inglessss! xDDD |
+1 |
Yes!!! |
Would this work with nested fields |
@jaredpalmer Pleeeeeaaase merge ! |
Up @jaredpalmer, pleaase ! 🙏 |
Up @jaredpalmer!! |
Any updates? @jaredpalmer |
Small PR to give Formik-Persist the ability to ignore / omit certain fields from being persisted to local storage.
There is a number of real world use cases where people might want to do this. For example password confirmation, email confirmation etc.
Let me know what you think.
Really enjoying Formik!
Cheers.