You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there a possibility to set a formik value based on the previous value?
Here a simple example:
The problem is, that if some functions run async parallel, we end up with a result, where only one num was added, instead of a sum of all.
In react's useState "Dispatch" we have the possibility to use a function as value, which has the previous item as parameter:
So I would expect something like this with formik:
Beta Was this translation helpful? Give feedback.
All reactions