Proper way of passing useForm to child
I am getting the error
Sentry says it comes from the
const formValues = props.form.useStore(state => state.values)
Can you spot what I am droing wrong? It works locally, but in production it fails:
3 Replies
frail-apricotOP•6mo ago
Adding in const { form } = props fixed this.
fair-rose•6mo ago
could you elaborate on how you added it in? in case someone sees this post in the future
frail-apricotOP•6mo ago
Sure thing.
It was caused by lost reactivity when passing the prop.