@tanstack/react-router 0.0.1-beta.27 → 0.0.1-beta.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/react-router/src/index.js +4 -3
- package/build/cjs/react-router/src/index.js.map +1 -1
- package/build/esm/index.js +4 -3
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +27 -27
- package/build/umd/index.development.js +4 -3
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +1 -1
- package/src/index.tsx +3 -3
package/package.json
CHANGED
package/src/index.tsx
CHANGED
|
@@ -327,9 +327,9 @@ export function createReactRouter<
|
|
|
327
327
|
} = linkInfo
|
|
328
328
|
|
|
329
329
|
const reactHandleClick = (e: Event) => {
|
|
330
|
-
React.startTransition
|
|
331
|
-
handleClick(e)
|
|
332
|
-
|
|
330
|
+
if (React.startTransition) // This is a hack for react < 18
|
|
331
|
+
React.startTransition(() => {handleClick(e)})
|
|
332
|
+
else handleClick(e)
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
const composeHandlers =
|