Skip to content

Commit 9bb8d0e

Browse files
committed
Updated CHANGELOG
1 parent 2562b69 commit 9bb8d0e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# [V3.0.0-alpha](https://github.com/nxtexe/react-motion-router/blob/main/CHANGELOG.md#v300-alpha)
2+
# Breaking Changes
3+
#### We've upgraded to React 18! 🎉
4+
I haven't taken full advantage of the new features available in the latest version of React. I was primarily focused on migrating the existing library to the new version of React. This included some breaking changes of course.
5+
6+
If you find any bugs you think may be related to migration feel free to open an issue.
7+
8+
## Features
9+
- `Stack.Screen` now supports components imported using `React.lazy()`. You can pass a fallback component similar to how you pass a fallback component to `React.Suspense`. What happens is screens now use `React.Suspense` under the hood. The fallback component will animate while the lazy component loads over the network. Essentially you can now split your projects up on a page by page basis. Once each page has been routed to once however they typically stay in memory just as if they were all downloaded on page load. What is downloaded on the client on page load is essentially only what is absolutely necessary (using this pattern).
10+
11+
- You can now pass a `paramsSerialiser` and `paramsDeserialiser` function to the `Router` config prop. This is useful for when you want to have your screen parameters in a specific format when they are parsed from the search part of the page url on page load.
12+
13+
## Enhancements
14+
15+
- When animation was set to none the progress was `NaN`. This has been rectified in version 3.0.0.
16+
- SharedElement updates are now cancelable ensuring only the latest updates are processed.
17+
- The library has been bundled using webpack such that packaging is a little tighter. There is still a long way to go here so be sure to look out for the latest version.
18+
119
# [V2.3.0-alpha](https://github.com/nxtexe/react-motion-router/blob/main/CHANGELOG.md#v230-alpha)
220
## Features
321
- Added RegExp as possible path prop to ```Stack.Screen```. Now you can create a route that matches multiple pathnames for example:

0 commit comments

Comments
 (0)