Router.replace from createLocalizedPathnamesNavigation causes infinite render #1198
Closed
3 tasks done
Labels
bug
Something isn't working
Description
Hello,
I found that the router.replace function from createSharedPathnamesNavigation differs from others router (createSharedPathnamesNavigation or even next/navigation).
I think it is some kind of issue.
Verifications
Mandatory reproduction URL
App Router
Reproduction description
Create a simple client component with router.replace on useEffect.
Try with the router returned from createSharedPathnamesNavigation and createLocalizedPathnamesNavigation. The sharred one work as expected (like the next/navigation one for example). But the localized one causes infinte render with the exact same code.
Expected behaviour
Working like others router.replace functions. For sure, it is pretty easy to avoid.
The text was updated successfully, but these errors were encountered: