Skip to content
Discussion options

You must be logged in to vote

That's an expected behavior.

useFetcher creates a new fetcher instance when the component mounts. Then when the component unmount the fetcher instance is removed.

useFetchers gives you access to the list of fetcher instances, but if the useFetcher unmount and the instance is removed it will be removed from the list.

Also, when the instance is removed Remix aborts the request.

How does AgGrid knows when to unmount the edit component? If you are doing something like

fetcher.submit(data)
unmount() // this tells AgGrid to unmount because you already did the submit

Then you should tell AgGrid to unmount once the fetcher.type is done.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@blasterbug
Comment options

Answer selected by MichaelDeBoey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants