Omit selected fields from being persisted#6
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.