Replies: 2 comments
-
Hi @tmcw, Conform is not integrated with Remix. All it does is to call |
Beta Was this translation helpful? Give feedback.
-
This a not a Conform-related question but I ran into a similar case. I previously used useEffect to watch for the server response and display my toast. But now I can trigger the toast directly from the loader and action functions, which is a great improvement. I used this epic-stack example : https://github.com/epicweb-dev/epic-stack/blob/main/docs/toasts.md Look inside the toast.server file he is talking about : https://github.com/epicweb-dev/epic-stack/blob/main/app/utils/toast.server.ts |
Beta Was this translation helpful? Give feedback.
-
This is a little tricky with Remix and
useFetcher
, but I think the norm is to use auseEffect
and look forfetcher.state
andfetcher.data
.useForm
in Conform seems to manage the fetcher behind the scenes. Is there a way to get its fetcher, or a callback, or another accessible way to know when a form submission has succeeded?Beta Was this translation helpful? Give feedback.
All reactions