Throw redirect but keep data? #3383
Unanswered
blitzbohne
asked this question in
Q&A
Replies: 1 comment
-
Note: It works fine using the "navigate" property from loader as then I can call redirect and return the data at the end. But seems that one was deprecated and only throw redirect support in future |
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
-
Hello,
I need to load data in a root route's load call. Depending on the loaded data I then need to redirect to a sub-route. As I am using shouldReload:false the root route's load should not be called again for subsequent routes. However when throwing the redirect it of course never returns the data from the loader.
So my simple question is how can I load data in my root route and redirect from there without throwing so that the returned data is kept and loaded only once?
Beta Was this translation helpful? Give feedback.
All reactions