ITADN

WIP: fix potential wrong language on first use

#32Pull Requestdartess 创建于 2023-05-17
D
dartesscommented
Currently, when first used, the baseLocale is always used. This results in the initial rendering being done with the baseLocale, but then immediately followed by a re-rendering with the current locale. This is unpleasant but not critical on the client side. However, when using SSR (Server-Side Rendering), this leads to the page being generated with the baseLocale regardless of the chosen language. UPD: It seems that fixing this I broke something else. I'll take a little more time. UPD2: I will also add a test for my problem. UPD3: this is my local problem, due to the fact that I do not use the [problematic implementation of nanostores/react](https://github.com/nanostores/react/issues/17). If that problem is solved in the proposed way, then this PR will be useful, for now it should be left as WIP.
合并状态:未合并 关闭于 2023-05-24 7 条评论