The original `@tanstack/router-devtools` package still work - it's not
touch by this PR in any way, apart from a migration note saying:
>[@tanstack/router-devtools] Warning: This package has moved to
@tanstack/react-router-devtools. Please switch to the new package, as
this package will be dropped soon.
This introduce three new packages
- @tanstack/router-devtools-core : This is a SolidJS port of the UI
And two adapters on top, that mount this solid app and forward
router/routerState into it.
- @tanstack/solid-router-devtools
- @tanstack/router-router-devtools
For use of devtools in production, a `TanStackRouterDevtoolsInProd` can
be imported instead of the standard `TanStackRouterDevtools` that'll be
tree shaken away in prod.
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
This minor is non-breaking for Router users, since it's undocumented to the public API, but **is breaking** for Start alpha users.
This changes the options signature for meta from this:
```tsx
createRoute({
meta: () => [
...
],
links: () => [
...
],
})
```
to this:
```tsx
createRoute({
head: () => ({
meta: [
...
],
links: [
...
],
})
})
```
* style: prettier
* test(react-router): try using `it`
* chore: undo those test trys
* fix(router-generator): remove unnecessary line breaks
* fix(router-generator): closer to what it was earlier
* fix(router-generator): dont conflict with tsr project prettier for snapshots
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>
* feat: add `notFound`, boundary, and support for routes
* feat: add global not found
* refactor: clean up throw global not found route
* feat: reset not founds on page navigation
* fix: fix duplicate throw global not found
* feat: rework global not found handling and add not-found-ssr example
* feat: update not found ssr example
* fix: fix type in not-found.tsx
* feat: add way to statically render a global not found page
* feat: remove flicker from notFound with SSR
* feat: remove <GlobalNotFound> server api
* feat: add file-based routing and codesplitting for not found component
* feat: add option to trigger not found on specific route
* docs: write docs for `notFound` and `NotFoundError`
* docs: document Route.notFound(opts)
* feat: add deprecation warnings to notFoundRoute
* fix: clean up a few things that went awry during rebase
* fix: fix react-router-server build
* feat: add not-found apis to basic-file-based example
* feat: update basic-ssr-streaming-file-based example to use new not-found apis
* chore: clean up a few things
* docs: write guides for new not found api
* docs: add api documentation for `not-found.tsx`
* feat: add notFoundComponent to lazy loading
* docs: deprecate NotFoundRoute and link to new apis
* fix: remove `.notFoundComponent` suffix in file based routing
* feat: make `route` option of typesafe and compatible with `getRouteApi`
- Deprecated class constructor APIs in favor of new `create[Class]` functions
- Added new code-splitting paradigm that produces less code, preloads potentially faster and plays nicely with SSR and file-based routing
- Updated all examples to use new code splitting patterns and new suggested APIs