v1.0.1
1.0.1
-
Update
NextRouter
type to keepquery
andpathname
bound in a union. This allows you to userouter
fromuseRouter
as an argument torouter.push
orrouter.replace
:const router = useRouter(); // reload the current page, preserving search parameters router.push(router, undefined, { locale: "fr" });
Full Changelog: v1.0.0...v1.0.1