Skip to content
Compare
Choose a tag to compare
@willybrauner willybrauner released this 12 Jan 08:40
· 49 commits to main since this release
4963c82

Minor Changes

  • c98cc80: ## breaking change: Improve resolve and onResolve params.

    router.resolve() and onResolve() option return now {response, context} object of the matching route.

    before:

    router.resolve("/").then((res) => {
      // res: "Hello home!"
    })

    after:

    router.resolve("/").then(({ response, context }) => {
      // response: "Hello home!"
      // context: RouteContext interface
    })