How should client and server loaders be used together for reactive pages? #10429
Replies: 2 comments
-
Also, In my case, I load user profile data server-side, and want to access it in client loaders. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This was answered here: remix-run/react-router#12862 |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking for guidance on correct patterns for client + server loaders as it relates to reactivity.
I've read this doc, but it doesn't explain how the two should be used or when the client loader is guaranteed to be called.
My page simply shows a data table, and lets users sort directions.
I assume I should refactor my API call so it makes a request in both server and client functions?
Should I manually call
revalidate()
or is it guaranteed that the clientLoader will be called when a URL changes?Beta Was this translation helpful? Give feedback.
All reactions