* feat: return async resolver from useBlocker hook
* feat: pass async resolvers to children on Block component
* fix: types and always reset promise
* docs: update example with custom UI
* refactor: namings
* docs: toggle between custom ui and default
* feat: expose status and refactor hook props
* feat: support current API
* feat: custom blocker should take precendence over the manual promise blocker
* test: unit test on condition to avoid breaking changes with the new API
* docs: deprecate old syntax and update the docs
* docs: create useBlocker API reference
* fix: deprecated interface
This will fix the example with useSuspenseQuery for the Router loader. You cannot just write `const posts = useSuspenseQuery(...)` but have to resolve the data property as so `const {data: {posts}} = useSuspenseQuery(...)`
Be sure to re-run generator after upgrading
* perf: get lazy? do less?, generate more
* feat: add support for objects for children at runtime
- add type tests for objects with children
- add runtime support for objects with children
- add runtime tests for objects with children
* perf: apply similar optimisations for merging for code based
* perf: improve performance of LinkProps when passed to `Link`
* exmaples: add to large based file examples search, params and context
* docs: add TS performance recommendations to docs
* fix: remove route groups from id
* examples: update linkprops examples
* docs: update docs based on comments
* chore: remove export of `LinkComponentProps`
* chore: clean up PR
---------
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
* docs: callouts in the file-based routing conventions
* docs: make the callouts related their properties/options
* docs: emojis!
* docs: add a callout in the "file-naming conventions" section
* docs: use a single callout in the "options" sections
* docs: better callout in the 'file-naming conventioned' section
* docs: missing words
* docs: that should be it
* docs: be a bit more obvious about the `-`
* docs: rename the authenticated-routes example
* docs: update the authenticated-routes example to use layouts
* docs: trim up the authenticated routes example
* docs: default navigation to `/dashboard`
* docs: add auth persistence
* feat(router-generator): append and prepend lines to the generated route-tree
* test(router-generator): making sure it works!
* refactor(router-generator): rename the prepend and append properties
* docs: docs on the new prepend and append functionality
* refactor(router-generator): update configuration property names
* test(router-generator): update the tests with the new configuration property names
* docs: update file-based routing guide with the new property names
* refactor(router-generator): move to the defaults
* test(router-generator): updated test output
* docs: show what the defaults are on the docs
* feat: add reset prop to errorComponent
* fix: types of defaultErrorComponent
* fix: put match into pending state when being invalidated if it was in error state
* docs: reset
* docs: error handling
* docs: integrate error handling into example
* chore: prettier on md files
* chore: fix wrong auto import
* fix: reset error boundaries from react-query in an effect
so that navigating away from a route will also re-trigger the query
* docs: error handling with TanStack Query
* chore: fix eslint
* fix: not all error components have a `preload`
* fix: merge conflict
* feat(router-generator): expose config to accept `semicolons` prop to prettier format with semicolons
* docs(router-generator): document the new `semicolons` configuration property
* docs: broken link linking to the SSR guide
* docs: broken link linking to the `RouterOptionsType#transformer-property`
* docs: fix broken link linking to code-splitting
* docs: fix broken link linking to the `RouterOptionsType`
* docs: fix broken link linking to external-data-loading
* docs: include layout as part of the pathless routes section
* docs: add links to the individual sections below
* docs: links for the route nesting stuff
* docs: move the routing concepts section to separate page
* fix: `routeTree` into the `createRouter` instance
* fix: switch to `Block/useBlocker` since react-router uses `useBlocker` instead of `Prompt/usePrompt`
* fix: rename RouteApi to getRouteApi and include useLoaderDeps
* feat: indicate `.lazy` suffix and mark deprecation suffixes being phased out
* fix: createRootRouteWithContext - `routeTree` into the `createRouter` instance
* fix: rootRouteWithContext - `routeTree` into the `createRouter` instance
* feat: `Function` keyword is redundant since its already nested under `Functions`
* feat: alphabetical sorting of functions
* feat: move `rootRouteWithContext` to the deprecated list
* feat: use backticks
* feat: alphabetical sorting of hooks