Replies: 1 comment
-
My follow up question is how to prevent the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a form that I'm submitting to fetch new data:
I'd like to overlay a spinner or disable the submit button while this is loading. If I just use
isFetching
, then it never transitions to true when the data changes, but only when the data is the same. I see that the router state is pending when the data changes (as a result of me navigating).Is there a simpler way to determine if I'm loading? Or is there a better way to update the search params other than calling navigate?
p.s.
navigate({ search: prev => prev })
will always through a typescript error when I useRouter.useNavigate
. I have to useuseNavigate({ from: '/' });
instead to get rid of the error. I'm usingvalidateSearch
. It seems to typeprev
properly, but there's an issue with assigning tonever
.Beta Was this translation helpful? Give feedback.
All reactions