formkit
formkit copied to clipboard
Repeater with condition and localstorage is not working
Reproduction
https://formkit.link/321328a685be867f955b01dbfd2a7ec0
Describe the bug
I'm encountering a TypeError: can't convert undefined to object when using a repeater field in combination with a condition and localStorage. This error appears when the component is rendered, and it seems to be related to how the stored data is rehydrated or processed conditionally.
Steps to Reproduce:
Set up a FormKit repeater with a condition on its fields.
Enable localStorage persistence.
Load the form, possibly after storing prior data.
Observe the console for the TypeError.
How to fix this?
Environment
• OS: Windows • Browser chrome • Version latest