0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/packages/react-router/src
Manuel Schiller 54dad5f872
fix(start): fix usage of use() with React 19 (#2963)
both router and react 19 were modifying the Promise object in a similar manner which caused a conflict.

See https://github.com/facebook/react/blob/v19.0.0/packages/react-reconciler/src/ReactFiberThenable.js#L162-L228 for how React 19 modifies the Promise object.

Both used an additional `status` property to track the Promise status, but router was using the value "success" and React was using the value "fulfilled" to mark a fulfilled Promise.

This change stores the router specific Promise tracking values using a symbol to avoid any potential collision.

fixes #2953
History 2024-12-09 18:24:04 +01:00
..
awaited.tsx fix(start): fix usage of use() with React 19 (#2963) 2024-12-09 18:24:04 +01:00
CatchBoundary.tsx fix(router): fixed a lot of context related issues (#1907) 2024-07-16 19:34:14 +02:00
defer.ts fix(start): fix usage of use() with React 19 (#2963) 2024-12-09 18:24:04 +01:00
fileRoute.ts Chained Server Fn Syntax, ServerFn Middleware (#2513) 2024-11-14 09:43:20 -07:00
history.ts refactor: eslint (#1365) 2024-03-26 09:08:49 +01:00
index.tsx fix(start): fix usage of use() with React 19 (#2963) 2024-12-09 18:24:04 +01:00
isServerSideError.tsx feat: New Serialization Paradigm (#1824) 2024-06-28 09:45:01 -06:00
lazyRouteComponent.tsx feat: allow to exclude routes from SSR (#2463) 2024-10-04 21:53:45 +02:00
link.tsx feat(react-router): add support for ViewTransition types (#2862) 2024-11-28 09:43:35 +13:00
location.ts Chained Server Fn Syntax, ServerFn Middleware (#2513) 2024-11-14 09:43:20 -07:00
manifest.ts fix(start): stronger typing of the tsrRoutesManifest plugin in start/config (#1875) 2024-07-02 21:09:12 +12:00
Match.tsx feat(react-router): add support for structural sharing for finegrained selectors (#2647) 2024-11-09 22:41:12 +01:00
matchContext.tsx fix(react-router): fix re-rendering when loaderDeps change (#2752) 2024-11-14 20:59:48 +01:00
Matches.tsx perf(start): improve typescript performance of start types (#2876) 2024-11-28 19:16:36 +01:00
not-found.tsx fix(react-router): do not unnecessarily render notFoundComponent (#2480) 2024-10-07 23:50:50 +02:00
path.ts feat(react-router): allow unencoded characters in dynamic path segments (#2677) 2024-11-05 22:08:21 +13:00
qss.ts chore(react-router): better attribution of the qss hard dependency (#2391) 2024-09-22 16:46:12 +12:00
redirects.ts perf(react-router): constant editor performance regardless how large a file based route tree is (#2243) 2024-09-06 01:33:37 +02:00
renderRouteNotFound.tsx chore(react-router): cleanup unused imports (#2041) 2024-07-27 23:12:11 +12:00
root.ts feat: allow to ignore blocker in navigate and <Link> (#1797) 2024-06-21 19:49:33 +02:00
route.ts perf(start): improve typescript performance of start types (#2876) 2024-11-28 19:16:36 +01:00
routeInfo.ts Chained Server Fn Syntax, ServerFn Middleware (#2513) 2024-11-14 09:43:20 -07:00
router.ts fix(start): fix usage of use() with React 19 (#2963) 2024-12-09 18:24:04 +01:00
routerContext.tsx feat(react-router): add support for structural sharing for finegrained selectors (#2647) 2024-11-09 22:41:12 +01:00
RouterProvider.tsx feat(react-router): generic router history (#2782) 2024-11-29 00:10:17 +01:00
SafeFragment.tsx feat: New Serialization Paradigm (#1824) 2024-06-28 09:45:01 -06:00
ScriptOnce.tsx fix(start): Fix issue when sometimes resolvePromise tsr-once script gets deleted before running (#2912) 2024-12-03 08:13:43 -07:00
scroll-restoration.tsx fix(react-router): correctly react to search param changes (#2883) 2024-11-28 23:31:37 +01:00
searchMiddleware.ts fix(react-router): only optional params may be removed (#2583) 2024-10-18 23:29:59 +02:00
searchParams.ts Chained Server Fn Syntax, ServerFn Middleware (#2513) 2024-11-14 09:43:20 -07:00
structuralSharing.ts feat(react-router): add support for structural sharing for finegrained selectors (#2647) 2024-11-09 22:41:12 +01:00
transformer.ts refactor(react-router,start): use react prefixed JSX types (#2903) 2024-12-03 22:13:09 +13:00
Transitioner.tsx fix(react-router): correctly react to search param changes (#2883) 2024-11-28 23:31:37 +01:00
useBlocker.tsx fix(react-router): only instantiate the confirmation promise when required in the useBlocker hook (#1669) 2024-05-29 21:53:57 +02:00
useLoaderData.tsx feat(react-router): add support for structural sharing for finegrained selectors (#2647) 2024-11-09 22:41:12 +01:00
useLoaderDeps.tsx feat(react-router): add support for structural sharing for finegrained selectors (#2647) 2024-11-09 22:41:12 +01:00
useLocation.tsx feat(react-router): add support for structural sharing for finegrained selectors (#2647) 2024-11-09 22:41:12 +01:00
useMatch.tsx fix(react-router): fix re-rendering when loaderDeps change (#2752) 2024-11-14 20:59:48 +01:00
useNavigate.tsx chore: add eslint rule for unused imports (#2523) 2024-10-12 22:06:33 +02:00
useParams.tsx feat(react-router): add support for structural sharing for finegrained selectors (#2647) 2024-11-09 22:41:12 +01:00
useRouteContext.ts feat(react-router): add support for structural sharing for finegrained selectors (#2647) 2024-11-09 22:41:12 +01:00
useRouter.tsx chore(react-router): cleanup unused imports (#2041) 2024-07-27 23:12:11 +12:00
useRouterState.tsx feat(react-router): add support for structural sharing for finegrained selectors (#2647) 2024-11-09 22:41:12 +01:00
useSearch.tsx feat(react-router): add support for structural sharing for finegrained selectors (#2647) 2024-11-09 22:41:12 +01:00
utils.ts Chained Server Fn Syntax, ServerFn Middleware (#2513) 2024-11-14 09:43:20 -07:00
validators.ts fix(start): infer input of validator functions (#2808) 2024-11-21 19:25:26 +01:00