-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/bug 1691 preserving change language binding #1720
Fix/bug 1691 preserving change language binding #1720
Conversation
…Language with useTranslation
…f fixedT function, bad impl, breaks test that was introduced in parent commit, verifying bug here: i18next#1716 (comment)
…verywhere other than where the bug was occurring, and keep shallow routing working via dependency list of useCallback hook. Fixes test broken by parent commit.
Sorry about the initial bad fix in #1716 . A dev issue was uncovered over at #1716 (comment) . Unfortunately I still cannot figure out how to test the bug 1691 proper in a unit test, but the dev issue does have a test added that:
I also have tested this PR manually for both bug 1691 proper as well as for the dev issue. I welcome @adrai and @medihack 's eyes on this second attempt, as well as anyone else's interested. No time pressure. |
thank you... it's included in v14.0.5 |
fyi: verified to work also in this example 8334298 👍 |
I know this is already merged, but the side-effect of this approach is that you define a new |
Thank you @schontz for the suggestion. It seems #1756 may be related to what you are seeing here. I plan to look into that issue more closely later today. Unfortunately, I cannot see what you are describing in your comment on this PR, 1720. What I am seeing in However, my line of reasoning does not align with this research from @arvinxx that version 14.0.4 does have a performance issue, so my line of reasoning is not correct. I'm sharing my reasoning in case you can see the error in it. |
If If that is the case, then I would ask @schontz to provide a minimal reproduction with expected and actual results, similar to the way that @woodreamz did in #1691 . That "To Reproduce" section with its behavior that reliably differs from the "Expected behavior" is the gold standard in bug reports. If you can file an issue that way, I've been very impressed with @adrai 's responsiveness to PRs provided by the community, and your concern has a good chance to be addressed. |
Checklist
npm run test
Checklist (for documentation change)