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
What you were expecting:
Save and Add Another instructions to be functioning in the most basic example.
What happened instead:
When applying the instructions in the Save and Add another recipe of the Create component documentation, I get an error "can't access property "reset", useFormContext is null" or "react_hook_form__WEBPACK_IMPORTED_MODULE_2_.useFormContext() is null
"
Steps to reproduce:
Implement a create form exactly as instructed in the example of the Create component "Save and Add Another" recipe.
Sidenote, the base example does have a different candidate implementation, but in order to have the reset happening with the default submit button, it requires the onSuccess mutation to happen on the Create component, and there doesn't seem to be a way to access the context at that level. Please keep that in mind when providing an updated recipe.
The text was updated successfully, but these errors were encountered:
What you were expecting:
Save and Add Another instructions to be functioning in the most basic example.
What happened instead:
When applying the instructions in the Save and Add another recipe of the Create component documentation, I get an error "can't access property "reset", useFormContext is null" or "react_hook_form__WEBPACK_IMPORTED_MODULE_2_.useFormContext() is null
"
Steps to reproduce:
Implement a create form exactly as instructed in the example of the Create component "Save and Add Another" recipe.
Related code:
https://codesandbox.io/s/blue-shadow-d9oinx?file=/src/posts/PostCreate.tsx
Sidenote, the base example does have a different candidate implementation, but in order to have the reset happening with the default submit button, it requires the onSuccess mutation to happen on the Create component, and there doesn't seem to be a way to access the context at that level. Please keep that in mind when providing an updated recipe.
The text was updated successfully, but these errors were encountered: