Replies: 3 comments
-
Check https://sergiodxa.com/tutorials/abort-async-calls-inside-remix-loaders-and-actions, it's the same for RR than Remix. |
Beta Was this translation helpful? Give feedback.
-
Thank you, but it only works when awaiting in the loader or returning a promise, which is not my case. |
Beta Was this translation helpful? Give feedback.
-
OK, so as far as I understand, if I don't |
Beta Was this translation helpful? Give feedback.
-
I'm using loaders to start fetching data from the server returning objects with promises from loaders, like this:
The problem is when I go back and forth in history the route isn't loading (URL isn't changing) until the previous page data fully loads.
Is there a way to abort pending query when the route is about to change?
Beta Was this translation helpful? Give feedback.
All reactions