#Make fetcher not rerender

1 messages · Page 1 of 1 (latest)

north scarab
#

Hey,
I want that the fetcher does not re-render the page.
How can I do this?

peak depot
#

What do you mean? If the data or status returned by useFetcher change it will cause a re-render, there’s no way to avoid that since those are status and without a re-render your UI would be out of date

remote goblet
#

just call useFetcher in a function and don't modify any state? (well, don't call the hook in a function, that's not allowed. But the reponse from useFetcher)