Routing: Introduce a new hooks option for scroll restoration, making it easier for developers to manage scroll behavior in their applications.
Routing: Add a default value for context in StaticRouter.navigateTo, preventing errors when no context object is provided.
Improvements
Routing: Update matchPath documentation with clear examples, helping users understand the return values better.
Routing: Improve the withRouter component by reducing the rendering depth, streamlining the component structure for better performance.
Routing: Enhance the Link component by adding unit tests for the onClick handler, ensuring more reliable event handling.
Fixes
Fix: Resolve an issue where the page reloads if an error occurs in the onClick event handler, improving user experience by preventing unwanted reloads.
Fix: Address a maximum update depth exceeded error caused by the Redirect component, ensuring smoother navigation without infinite loops.
Fix: Correct the behavior of matchPath to avoid throwing exceptions when the path is undefined, enhancing stability.
Others
Update the internal links on the website to ensure they are correctly prepended with the public path, improving navigation.
Remove deprecated API references from examples, ensuring users have access to the most current and supported methods.