v6.6.0
What's Changed
This minor release is primarily to stabilize our SSR APIs for Data Routers now that we've wired up the new RouterProvider in Remix as part of the React Router-ing Remix work.
Minor Changes
- Remove
unstable_prefix fromcreateStaticHandler/createStaticRouter/StaticRouterProvider(#9738) - Add
useBeforeUnload()hook (#9664)
Patch Changes
- Support uppercase
<Form method>anduseSubmitmethod values (#9664) - Fix
<button formmethod>form submission overriddes (#9664) - Fix explicit
replaceon submissions andPUSHon submission to new paths (#9734) - Prevent
useLoaderDatausage inerrorElement(#9735) - Proper hydration of
Errorobjects fromStaticRouterProvider(#9664) - Skip initial scroll restoration for SSR apps with
hydrationData(#9664) - Fix a few bugs where loader/action data wasn't properly cleared on errors (#9735)
Full Changelog: https://github.com/remix-run/react-router/compare/react-router@6.5.0...react-router@6.6.0