![]() ✂ Removed the prop and moved responsibility for setting up/tearing down the listener ( history.listen) into the wrapper components (, , etc.).□ Warning: This release breaks compatibility with 6.0.0-alpha.4 ➕ Added and to better control matching behavior of s.The preload function will be called when the route has matched and is about to render. ➕ Added and route.preload (JSX and useRoutes) APIs.There is also a comprehensive API Reference. If you're interested in upgrading an existing app, please check out the v5 to v6 migration guide. For now, if you're just interested in testing things out you may be interested in the getting started guide. □ We are actively working on documentation. If you can spare some time, we'd love to have some help :) ![]() The main thing left to do is documentation and guides (and fix bugs, ofc). We are actively developing features targeted at supporting suspense for data loading in the experimental channel. □ Now that we are in beta, you can expect fewer breaking changes (if any) between releases in the next channel. Or, if you're on React Native: $ yarn add history Roadmap #React router dom latest version install#✅ If you'd like to test it out, install from npm: $ npm install history We now re-use the sourcemap output from tsc as input into the Rollup toolchain, so sourcemaps go all the way back to the original source instead of stopping at the tsc-generated filesĭevelopment for v6 is happening on the dev branch.□ Renamed resolveLocation to resolvePath to be more inline with the naming in the history API.□ Renamed useResolvedLocation to useResolvedPath to be more inline with the naming in the history API.Made react-router a regular dependency of react-router-dom and react-router-native.□ Moved useLocationPending into the experimental release channel.□ Moved into the experimental release channel.There are a few breaking changes from alpha.5: □ No new features in this release since alpha.5, besides the fact that we are now using history v5 stable in various places behind the scenes. □ Today we are very happy to release the first beta of React Router version 6! Major Features
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |