You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a screen where I put the navigation guard, it works perfectly. But on this screen you can change the language of the application.
To do this, I use nextIntl with this: router.push(${pathName}?${searchParams.toString()}, { locale: lang });
My strategy was to disable the guard before calling router.push and then re-enable it afterwards (the enableGuard state is placed in a context that wraps the whole page).
The problem is that after pushing the new router with the locale changes, the guard no longer works.
Can you help me.
Regards,
The text was updated successfully, but these errors were encountered:
Hey,
Thank you for your work on this subject.
I have a screen where I put the navigation guard, it works perfectly. But on this screen you can change the language of the application.
To do this, I use nextIntl with this:
router.push(
${pathName}?${searchParams.toString()}, { locale: lang });
My strategy was to disable the guard before calling router.push and then re-enable it afterwards (the enableGuard state is placed in a context that wraps the whole page).
The problem is that after pushing the new router with the locale changes, the guard no longer works.
Can you help me.
Regards,
The text was updated successfully, but these errors were encountered: