Skip to content

Persisting values on change and restore on refreshing the page #3732

Answered by karfau
karfau asked this question in Q&A
Discussion options

You must be logged in to vote

Tried it with the approach which makes more and more sense the longer you think about it.

Regading our possibility to subscribe to the updates of the stored values which we use heavily in our code base, we just don't need it when using Formik, so it boils down to only using our "persistence layer for reading (to create initialValues) and writing (in a component that has one or multiple useEffects) the values.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by karfau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant