Rendering always has flickering issues, I'm not sure what the problem is
Rendering always has flickering issues, I'm not sure what the problem is
VoerkaI18n provides a new international experimental solution for SolidJS. In practical examples, when the default language refreshes the webpage in 'en-US', there is always a delay, and' zh CN 'is displayed first before English.
I cannot confirm if there is a problem with my usage method or other factors. I hope someone can help.
The example is here
The issue appears to be because createSignal initial value is set as a function, which causes the message to initially display in Chinese.
createSignal的值初始是message,导致先显示的中文
Setting ssr: false in app.config.ts fixed the problem, as SSR requires server-side initialization of the language configuration.
我在app.config.ts将ssr关闭后就正常了ssr: false.
主要还是ssr时, 需要服务器端就要初始化对应的语言
I see this is a SolidStart issue.. I will move it there. If you consider it complete please close it there.