How to access root loader
data from page clientLoader
?
#13372
Answered
by
sergiodxa
davidbielik
asked this question in
Q&A
-
I've been trying workarounds to save root loader data in the window variable, but running into race conditions. What's the recommended strategy here? |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Apr 6, 2025
Replies: 1 comment 4 replies
-
A clientLoader can only access the server loader data from the same route, there's no way a loader get other loaders data, regardless if they are client or server loaders. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
davidbielik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A clientLoader can only access the server loader data from the same route, there's no way a loader get other loaders data, regardless if they are client or server loaders.