0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/docs
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
..
assets docs: add a diagram on the "custom search param serialization" guide on the need for idempotency (#1860) 2024-06-29 23:30:30 +12:00
eslint fix(eslint-plugin-router): add missing properties to rule create-route-property-order (#2557) 2024-10-16 20:09:30 +02:00
framework/react fix(start): fix usage of use() with React 19 (#2963) 2024-12-09 18:24:04 +01:00
config.json docs: add middleware to sidebar 2024-11-17 13:42:09 -07:00