0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-18 19:34:24 +00:00
router/packages/react-router/src
Flo a7b1667827
refactor(router-core): remove pick utility in favor of direct object manipulation (#4983)
Based on the current usage of `pick`, directly addinf the picked keys to
the objects will be less overhead with the same result.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- Refactor
- Simplified internal routing logic related to navigation options; no
change to runtime behavior.
- Chores
  - Removed an internal utility no longer used.
- Public API
- One non-essential utility export was removed from package entry
points, slightly reducing the public API surface.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
History 2025-08-17 21:26:07 +02:00
..
ssr feat: ssr setting per route (#4565) 2025-07-05 14:35:14 +02:00
Asset.tsx fix(react-router, solid-router): make head function scripts load properly (#4323) 2025-06-18 22:03:06 +02:00
awaited.tsx refactor(router-core): move router-core into a separate package (#3171) 2025-01-26 14:06:35 +13:00
CatchBoundary.tsx fix(router): fixed a lot of context related issues (#1907) 2024-07-16 19:34:14 +02:00
ClientOnly.tsx fix: Small comment text change to bump version 2025-06-06 15:57:02 -07:00
fileRoute.ts feat: Merge alpha to main (#4365) 2025-06-10 23:19:32 +02:00
HeadContent.tsx refactor(router-core,react-router,solid-router): avoid copying arrays just to .reverse() them (#4980) 2025-08-17 18:30:59 +02:00
history.ts feat(react-router): implement hash change "Scroll Into View" option (#2996) 2024-12-14 08:58:03 +01:00
index.tsx refactor(router-core): remove pick utility in favor of direct object manipulation (#4983) 2025-08-17 21:26:07 +02:00
lazyRouteComponent.tsx feat: ssr setting per route (#4565) 2025-07-05 14:35:14 +02:00
link.tsx fix(router-core): type mismatch for navigate function (#4625) 2025-07-22 17:32:16 +02:00
Match.tsx refactor(router-core): skip loader and store update if nothing to await (#4926) 2025-08-15 16:41:41 +02:00
matchContext.tsx fix(react-router): fix re-rendering when loaderDeps change (#2752) 2024-11-14 20:59:48 +01:00
Matches.tsx feat(react-router): add disableGlobalCatchBoundary option (#4765) 2025-07-26 22:45:20 +02:00
not-found.tsx fix(router-core): change error type in ErrorComponentProps (#4691) 2025-07-20 07:33:04 +02:00
renderRouteNotFound.tsx refactor(router-core): move AnyRoute and AnyRouter to router-core (#3640) 2025-03-04 21:48:58 +01:00
route.tsx fix(router-plugin): add support for boolean and null literals in code splitter (#4915) 2025-08-13 13:01:57 +12:00
router.ts fix(react-router): correctly assign createLazyFileRoute on window (#4948) 2025-08-14 00:29:49 +02:00
routerContext.tsx refactor(router-core): moving internals of Router to router core (#3800) 2025-03-18 19:26:13 +01:00
RouterProvider.tsx feat: Merge alpha to main (#4365) 2025-06-10 23:19:32 +02:00
SafeFragment.tsx feat: New Serialization Paradigm (#1824) 2024-06-28 09:45:01 -06:00
ScriptOnce.tsx fix: remove debug log (#4604) 2025-07-11 19:49:35 +02:00
Scripts.tsx feat: Merge alpha to main (#4365) 2025-06-10 23:19:32 +02:00
scroll-restoration.tsx fix: scroll to top with hash history (#4795) 2025-07-27 00:36:40 +02:00
ScrollRestoration.tsx fix: properly handle sessionStorage not being available for scroll restoration (#4186) 2025-05-16 19:03:16 +02:00
structuralSharing.ts refactor(router-core): move AnyRoute and AnyRouter to router-core (#3640) 2025-03-04 21:48:58 +01:00
Transitioner.tsx fix(solid-router): prevent client effects running on server (#4621) 2025-07-15 22:19:37 +02:00
typePrimitives.ts fix(router-core): move typePrimitives to shared package (#3748) 2025-03-12 13:30:19 +01:00
useBlocker.tsx fix: do not pre-decodeURI before passing to createMemoryHistory (#4893) 2025-08-08 15:36:37 -06:00
useCanGoBack.ts feat(react-router): add useCanGoBack (#3017) 2025-01-03 21:09:58 +01:00
useLoaderData.tsx refactor(router-core): move AnyRoute and AnyRouter to router-core (#3640) 2025-03-04 21:48:58 +01:00
useLoaderDeps.tsx refactor(router-core): move AnyRoute and AnyRouter to router-core (#3640) 2025-03-04 21:48:58 +01:00
useLocation.tsx refactor(router-core): move AnyRoute and AnyRouter to router-core (#3640) 2025-03-04 21:48:58 +01:00
useMatch.tsx fix(router-core): move ThrowConstraint to core utils (#3749) 2025-03-12 13:54:05 +01:00
useNavigate.tsx feat: Merge alpha to main (#4365) 2025-06-10 23:19:32 +02:00
useParams.tsx fix(router-core): move ThrowConstraint to core utils (#3749) 2025-03-12 13:54:05 +01:00
useRouteContext.ts refactor(router-core): move AnyRoute and AnyRouter to router-core (#3640) 2025-03-04 21:48:58 +01:00
useRouter.tsx refactor(router-core): move AnyRoute and AnyRouter to router-core (#3640) 2025-03-04 21:48:58 +01:00
useRouterState.tsx refactor(router-core): move AnyRoute and AnyRouter to router-core (#3640) 2025-03-04 21:48:58 +01:00
useSearch.tsx fix(router-core): move ThrowConstraint to core utils (#3749) 2025-03-12 13:54:05 +01:00
utils.ts fix(react-router) useLinkProps memoization and performance (#4668) 2025-07-16 19:45:45 +02:00