Replies: 1 comment
-
It will, because you are creating a route with two components which may or may not be rendered but could be rendered. You'll have to lazy load the component if you want to ensure they are not imported. or create different routes for PDF and EPUB so they have different bundles. |
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.
-
Let's say I have the following in a route
I happen to know that the loader will not suddenly return a different type. Of course, Remix doesn't know that.
My question is: Let's say the loader returns "pdf", upon hydration, will Remix also load the Javascript for
ExpensiveEPUBComponent
?Beta Was this translation helpful? Give feedback.
All reactions