Skip to content

SSR example always fetch client side #10

Answered by adrienbaron
lu-zen asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @lu-zen !

You can find a detailed explanation about how this example works here.
Basically this TinyFrontendServerStorage.Component get set by the server when it's loading so it's only defined server side. This means that server side ExampleTinyFrontendClient don't get called (and therefore loaded), and client side as TinyFrontendServerStorage.Component is not defined, ExampleTinyFrontendClient gets used instead :).

Hope this makes sense!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lu-zen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants