Importing clientLoader from external file causing hydration issues #10582
Unanswered
rapmendoza
asked this question in
Q&A
Replies: 0 comments
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.
-
Hi, In my Remix app I have this folder structure for my layout route:
When adding a
HydrateFallback
, theclientLoader
needs to be inside theroute.tsx
because if not, it is causing hydration issues. Is that really the case? I want to separate client and server files because the route itself is getting really long, especially when including loaders and actions.Here's a simple scenario I have.
With hydration issue:
Without hydration issue:
Remix v2.13.1
React v18.2
Any kind of assistance would be appreciated. 🙏
Beta Was this translation helpful? Give feedback.
All reactions