Describe the bug
I just converted my repo to use your library for its type-safety and it is awesome. Unfortunately, I am not able to get the SSR working as I expected.
First of all, the documentation doesn't mention the fallback property on the I18nProviderClient
If you do not provide the fallback property, nothing gets rendered on the server. So not only the SSG is useless, not even the SSR is useful. What gets rendered on the server is
To Reproduce
Create a minimal example and inspect the network when you go to the page. You will see that the first response includes the contents mentioned above and only after the js files are downloaded and parsed, the rest gets rendered on the client.
Expected behavior
Prerender everything nicely on the server, so the fallback is used only when rendering on the client for some other reason.
About (please complete the following information):
This may very well be an issue in my repo, as I made a minimal example and it works as expected... I will investigate this more, but closing this issue for now.
Describe the bug I just converted my repo to use your library for its type-safety and it is awesome. Unfortunately, I am not able to get the SSR working as I expected.
fallback
property on theI18nProviderClient
fallback
property, nothing gets rendered on the server. So not only the SSG is useless, not even the SSR is useful. What gets rendered on the server isand if you provide the
fallback
property, like this:you get
To Reproduce Create a minimal example and inspect the network when you go to the page. You will see that the first response includes the contents mentioned above and only after the js files are downloaded and parsed, the rest gets rendered on the client.
Expected behavior Prerender everything nicely on the server, so the fallback is used only when rendering on the client for some other reason.
About (please complete the following information):