QuiiBz / next-international

Type-safe internationalization (i18n) for Next.js
https://next-international.vercel.app
MIT License
1.26k stars 59 forks source link

The changeLocale function doesn't seem to be doing all the work #214

Closed scriptboy1990 closed 11 months ago

scriptboy1990 commented 11 months ago

I put a switch button in the upper right corner of the dashboard, and when I clicked the button to switch languages, I found that only some of the components changed. For example, only the Main component changed, but the navigation bar did not. When I manually refreshed the entire page with F5, all the components changed language.

scriptboy1990 commented 11 months ago

oh, I see, variables wrapped by useMemo cannot be updated in real time