v2.0.0 - A complete overhaul #41
JesusTheHun
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A new version was released.
The internals were completely overhauled, solving long standing bugs, bringing more consistency and opening the door for more improvements.
Goals
Outcome
1. The bugs are solved.
You can now change the args of the story using
controls
without losing your component's state.Sometimes your component would not render after its internal state was updated, this is also fixed.
2. You don't have to remember anything
With the new
reactRouterParameters
function you don't have to remember anything. Call the function and you get autocomplete from your IDE, thanks to the types definitions.3. Introduction of type safety
The new function allows the add-on to help you with the type of the parameters.
I started with the basics but more powerful types will come in future versions. If you would like to see types in particular, leave a comment, open an issue or submit a PR !
4. Flexibility
The add-on now externalize the magic to helper functions. Because of that, you can now fully configure the router just like you do in your app, create your own helpers if you want, or just use the ones provided out of the box.
If you create a helper you think people might find useful, you can open an issue or submit a PR !
Routing helpers
I hope you guys appreciate this new version. I would love to hear your feedback 📣 !
Beta Was this translation helpful? Give feedback.
All reactions