I am getting a memory leak in formik and I do not know whats causing it. I tried various workarounds but nothing seems to prevent the leak from happening.
Current Behavior
The memory leak triggers when i start typing in any input in the form. If you watch memory usage (i've been using firefox), you can see that the process goes up to around 3-4gb before the browser asks to stop it or wait.
crashing firefox (example takes me ~10-20 seconds for memory leak to trigger):
crashing edge (example takes me 20-30 seconds for memory leak to trigger):
crashing in chrome (example takes me ~ 1 minute for memory leak to trigger)
this codebox example takes about 10-20 seconds for the memory leak to creep up for the firefox dialog to show. Longer in edge and chrome. my actual code which has many more inputs triggers it within 1 second.
Bump. this is still an issue for me. @jaredpalmer my codesandbox example still triggers some sort of memory leak on all browsers. any idea whats causing it or how to get around the leak?
π Bug report
I am getting a memory leak in formik and I do not know whats causing it. I tried various workarounds but nothing seems to prevent the leak from happening.
Current Behavior
The memory leak triggers when i start typing in any input in the form. If you watch memory usage (i've been using firefox), you can see that the process goes up to around 3-4gb before the browser asks to stop it or wait.
crashing firefox (example takes me ~10-20 seconds for memory leak to trigger):
crashing edge (example takes me 20-30 seconds for memory leak to trigger):
crashing in chrome (example takes me ~ 1 minute for memory leak to trigger)
Expected behavior
no memory leak
Reproducible example
https://codesandbox.io/s/optimistic-brown-0q6re?file=/App.tsx
this codebox example takes about 10-20 seconds for the memory leak to creep up for the firefox dialog to show. Longer in edge and chrome. my actual code which has many more inputs triggers it within 1 second.
Your environment