0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/examples/react/basic-file-based
gilbert dcfd9d7246
feat: new not found APIs (#1048)
* 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`
History 2024-01-27 09:12:54 -07:00
..
src feat: new not found APIs (#1048) 2024-01-27 09:12:54 -07:00
.gitignore fix: do not recreate history on fast refresh 2023-12-04 09:24:15 -07:00
index.html feat: Migrate build to @tanstack/config and common Nx config (#1037) 2024-01-19 22:35:39 -07:00
package.json chore(deps-dev): bump vite from 5.0.11 to 5.0.12 (#1035) 2024-01-24 20:08:04 +01:00
README.md fix: do not recreate history on fast refresh 2023-12-04 09:24:15 -07:00
tsconfig.dev.json fix: do not recreate history on fast refresh 2023-12-04 09:24:15 -07:00
tsconfig.json fix: do not recreate history on fast refresh 2023-12-04 09:24:15 -07:00
vite.config.js feat: Add @tanstack/router-vite-plugin. Fixes TSR generate now nested routes properly. Also fixes unstable_codeSplitting issues. 2024-01-08 16:01:00 -07:00

Example

To run this example:

  • npm install or yarn
  • npm start or yarn start