formik-persist icon indicating copy to clipboard operation
formik-persist copied to clipboard

Omit selected fields from being persisted

Open Ciaran0 opened this issue 7 years ago • 18 comments

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.

Ciaran0 avatar Feb 26 '18 22:02 Ciaran0

Just realised I should ignore touched and errors for those fields. Ill add this

Ciaran0 avatar Feb 27 '18 09:02 Ciaran0

@jaredpalmer What do you think of this?

Ciaran0 avatar Mar 05 '18 11:03 Ciaran0

@Ciaran0 can you resolve conflicts?

dzienisz avatar Nov 23 '18 11:11 dzienisz

Hi @dzienisz, I would but I don't see this being merged in anytime soon

Ciaran0 avatar Dec 01 '18 17:12 Ciaran0

@jaredpalmer Thanks for approving this 😄 I have resolved the conflicts.

Ciaran0 avatar May 18 '19 18:05 Ciaran0

This is useful. Is this going to be merged?

quocb avatar Aug 29 '19 23:08 quocb

I need it to ignore isSubmitting... merge when??

hendrul avatar Sep 02 '19 17:09 hendrul

^^ 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.

quocb avatar Sep 02 '19 17:09 quocb

Men this only works for values, touched, and errors but not for other fields like isSubmitting

hendrul avatar Sep 06 '19 16:09 hendrul

why this is not merged yeat????? cmonnn

rodgomesc avatar Oct 14 '19 20:10 rodgomesc

why this is not merged yeat????? cmonnn

hahahaha Que mal inglessss! xDDD

hendrul avatar Oct 15 '19 20:10 hendrul

+1

mhilland avatar Oct 31 '19 16:10 mhilland

Yes!!!

dzienisz avatar Nov 01 '19 17:11 dzienisz

Would this work with nested fields <Field name='address.city' />?

mwmcode avatar Dec 18 '19 08:12 mwmcode

@jaredpalmer Pleeeeeaaase merge !

Romusc avatar Jul 28 '20 09:07 Romusc

Up @jaredpalmer, pleaase ! 🙏 Many thanks

ma-v avatar Dec 16 '20 17:12 ma-v

Up @jaredpalmer!!

jayzyaj avatar Dec 21 '20 02:12 jayzyaj

Any updates? @jaredpalmer

jayzyaj avatar Jan 26 '21 02:01 jayzyaj