0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
Commit graph

57 commits

Author SHA1 Message Date
Manuel Schiller
e2e07537e3
chore: add missing doc link (#926) 2024-01-04 22:06:11 +01:00
Manuel Schiller
41493fae66
fix: clear hash if not set (#914) 2024-01-03 14:51:45 -07:00
Tanner Linsley
c12bec43c4 docs: fix api titles 2024-01-03 13:46:08 -07:00
Tanner Linsley
abb3c238b1 fix: api reference links 2024-01-03 13:42:03 -07:00
Manuel Schiller
c5eae0cfea
feat: allow search params with default values (#907) 2024-01-03 04:28:07 +01:00
Tanner Linsley
1e6f7ae5ff docs: update api reference 2024-01-02 10:50:37 -07:00
Tanner Linsley
07893ef365 docs: update api 2024-01-02 09:38:57 -07:00
Manuel Schiller
3b6b8d0da9
fix(route-cli): make quote style configurable (#894)
* feat(router-cli): make quoteStyle configurable

* set `quoteStyle` to `double` in one example
2023-12-29 08:43:11 -07:00
Tanner Linsley
ac29d55e94 fix: bring back shouldReload (but not its capability to track dependencies) 2023-12-19 00:08:12 -07:00
Tanner Linsley
3206f0481b fix: swr + remove shouldReload, activeOptions?.exact for search params 2023-12-18 17:28:12 -07:00
Tanner Linsley
8e7645ae24 feat: loaderDeps 2023-12-15 16:49:39 -07:00
Tanner Linsley
5ed8e42185 fix: preloading and potentially fix devtools context 2023-12-15 13:01:39 -07:00
Tanner Linsley
3da47db651 fix: component types 2023-12-13 23:48:30 -07:00
Tanner Linsley
5423710170 fix: navigation blocking 2023-12-08 23:27:28 -07:00
Tanner Linsley
2cd2eb2080 fix: fine-grained subscriptions 2023-12-06 16:07:59 -07:00
Tanner Linsley
aac5ad9db8 fix: remove fine-grained selectors
They didn't really work anyway... lol
2023-12-06 13:22:50 -07:00
Tanner Linsley
7725c392b1 fix: routeOptions.key 2023-12-04 14:21:01 -07:00
Tanner Linsley
8fab8b4175 feat: loader + ephemeral loaderData
Breaking Changes:

- `load` has been renamed back (I know...) to `loader`. Don't kill me. This again stays true to the nature of its functionality.
- `loader` can once again return data, but it is stored ephemerally on the route match and re-loaded on every navigation.
- If you choose to store data in `loaderData` from the `loader` function, you'll likely want to employ some level of caching to ensure you're only fetching data when necessary and resolving as early as possible if you have any meaningful cached data to display to the user. TanStack Query is a great tool to do this.
2023-11-29 01:16:52 -07:00
Tanner Linsley
722a3ce6b6 fix: refactor to full suspense + useTransition 2023-11-13 22:25:20 -07:00
Tanner Linsley
66ec994600 fix: Rename route and router meta back to route and router context
- Route meta and router meta have been renamed back to context. Bikeshed!
- The RouterContext class has been removed in favor of a new `rootRouteWithContext` factory function e.g. rootRouteWithContext<YourRouterContext>()(config)
2023-11-07 13:45:15 -07:00
Tanner Linsley
4a792144eb feat: Big refactor to React only
There are many breaking changes in this release:
- The Router class no longer has many of the methods it had.
- Most of these methods have been moved to the new routerContext, which is served via the useRouter() hook
- React state is being used for all state management, which should set the stage for better transition/suspense support
- Router Context and route context has been renamed to Router Meta and Route Meta
- Loaders are gone. You can still force a route to wait for an async function via `beforeLoad`, which is serial or `load` which is parallel.
- There's a lot of other changes, but I'm too tired to think straight.
2023-11-05 01:38:08 -06:00
Tanner Linsley
5fdf465ecf feat: loaderContext
Breaking Changes:
- `search` and `hash` are no longer directly available in route loaders
- The route `key` option has been removed

New:
- Added a new optional route option `loaderContext`. It's a function that receives `search` and `hash` and expects you to return any serializable data from them that you require in your loader. This stable-serialized value is used to uniquely identify route matches coming from this route configuration and acts as a dependency tracker for when loaders should rerun, etc.
2023-09-28 13:22:22 -06:00
Tanner Linsley
12770b7150 fix: remove getContext, beforeLoad result decorates context 2023-09-01 16:42:39 -06:00
Tanner Linsley
9995e8975e fix: expose onEnter, onTransition, onLeave route options. 2023-09-01 12:13:23 -06:00
Tanner Linsley
89a1a47d62 fix: error handling options and scroll restoration 2023-08-24 13:22:33 -06:00
Mihovil Ilakovac
7f9286a41e
Typos fixes (#687) 2023-08-21 17:57:08 -06:00
Tanner Linsley
7cd1f24259 Update router-cli.md 2023-08-21 10:49:20 -06:00
Tanner Linsley
0d0fe66563 Update router-cli.md 2023-08-21 10:48:14 -06:00
Tanner Linsley
670333adc2 Update router-cli.md 2023-08-21 10:47:47 -06:00
Tanner Linsley
efeb863e67 Update router-cli.md 2023-08-21 10:47:30 -06:00
Tanner Linsley
2ef21c1a4f Update router-cli.md 2023-08-21 10:47:05 -06:00
Tanner Linsley
8cf67e14b5 Update router-cli.md 2023-08-21 10:09:19 -06:00
Tanner Linsley
14acb27738 fix: route generation 2023-08-21 10:08:12 -06:00
Tanner Linsley
4767648c15 fix: framework agnostic packages 2023-08-08 18:34:31 -06:00
Tanner Linsley
79eb2ff027 feat: bring back route loaders, caching, etc 2023-08-07 15:22:49 -06:00
Tanner Linsley
9660e43c80 docs/examples: lazyRouteComponent updates 2023-08-04 17:09:00 -06:00
Tanner Linsley
b7fffc48e4 docs: clean up TODOS and broken links 2023-07-07 15:29:10 -06:00
Cyprian Bergonia
99957c10be
feat: named imports (#594)
* Update react.tsx

Allow named imports

* Update react.tsx

* Update lazy.md

* Update code-splitting.md

* Update code-splitting.md

* Create TestComponent.tsx

* Update createRoutes.test.ts
2023-07-06 17:18:51 -06:00
Tanner Linsley
b264b4a9b8 fix: layout-aware, more performant route matching 2023-07-06 15:00:38 -06:00
Tanner Linsley
3581aec569 checkpoint 2023-02-20 09:41:43 -07:00
Tanner Linsley
b87a7a0fc1 Checkpoint 2023-02-17 10:52:09 -07:00
Tanner Linsley
a99ca55aeb docs: progress 2023-01-31 12:02:40 -07:00
Tanner Linsley
434aa7405a fix: lazy loaderClient/actionClient initilialization 2023-01-24 15:59:57 -07:00
Tanner Linsley
894c47fe92 checkpoint 2023-01-24 12:22:10 -07:00
Tanner Linsley
039441f33f fix: loader api changes 2023-01-23 15:51:30 -07:00
Bachitter Chahal
0732141bce
docs: fix typo in RouterProvider.md and change RouterProvider to self closing tag (#504) 2023-01-23 12:41:16 -07:00
Tanner Linsley
1d18e2c1a5 checkpoint 2023-01-22 15:10:47 -07:00
Tanner Linsley
3b16b5893f fix: double navigations 2023-01-18 16:21:08 -07:00
Saurabh Bhan
e703050ecc
[Docs] API definitions and examples for 'createRouteConfig' (#467)
* [WIP] Docs - API definitions and examples

* [Docs]"createRouteConfig" definitions and examples

* Delete pnpm-lock.yaml

* [Docs]"createRouteConfig" definitions and examples

* restored delete lock file

* removed files
2022-12-27 09:17:07 -07:00
Tanner Linsley
bb628fb054 Merge branch 'beta' of https://github.com/TanStack/router into beta 2022-12-22 10:04:35 -07:00