Skip to content

v0.0.11

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Sep 10:51
· 4 commits to master since this release

Changelog: v0.0.10...v0.0.11

  • React Corsair is now a part of MegaStack.

  • CommonJS support has been removed.

  • useRoute and redirect can now be used in a notFoundComponent.

  • LazyComponentError is thrown instead of Error when a lazyComponent cannot be loaded.

  • NotFoundError is thrown by notFound.

  • Params adapter can be a Standard Schema instance.

  • RouteController.renderingStage distinguishes between foreground, background, fallback, and discarded controllers.

  • Router.location and Router.rootController are never null.

  • The "navigate" event includes previous and next controllers and locations.

  • LinkProps.prefetch specifies when a link’s location should be prefetched.

  • createHashHistory has been renamed to createHashBrowserHistory.

  • History.toAbsoluteURL has been removed. Use History.toURL and History.parseURL instead.

  • BrowserHistory.start must be called for histories returned by createBrowserHistory and createHashBrowserHistory.

  • The SearchParamsSerializer interface has been removed in favor of Serializer<Dict>.

  • History.canGoBack returns true if calling History.back would certainly move back one page in history.

  • OutletProps.fallback is rendered when no controller is available to render in an Outlet.

  • ReadableSSRRouter and PipeableSSRRouter have been removed. Use SSRRouter instead.

  • SSRRouterOptions.stateStringifier and HydrateRouterOptions.stateParser have been replaced with a unified serializer option.

  • usePrefetch and <Prefetch> now support prefetchTrigger, which defers prefetching until a specific event occurs. Use createHoveredPrefetchTrigger, createVisiblePrefetchTrigger, or a custom PrefetchTrigger.