Link
references the wrong locale, and all prefetch=true
causes errors when using createNavigation
.
#1462
Closed
3 tasks done
Labels
bug
Something isn't working
Description
OK
NG
Error Message
Hypothesis after code reading
Hypothesis after reading the code
When using
createLocalizedPathnamesNavigation
, the locale is ultimately set here. The same is true for the Client.On the other hand, when using
createNavigation
, it appears thatisChangingLocale
is checked here without calculating finalLocale.As a result,
locale
increateNavigation
is probably undefined andisChangingLocale
is always true.versions
This is the version in which the bug was confirmed to occur.
Verifications
Mandatory reproduction URL
https://github.com/varmil/noxi/pull/626/files#diff-ee810f949a204706e7360b0af570aea479f0efb7103a3abaaceb8c0acfb8c9bdL5-R5
Reproduction description
Steps to reproduce:
npm run dev
in./web
dir. Go browser.Expected behaviour
Since I don't use a locale prop, we expect prefetch to proceed without error.
The text was updated successfully, but these errors were encountered: