@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tanstack/react-router",
3
3
  "author": "Tanner Linsley",
4
- "version": "0.0.1-beta.27",
4
+ "version": "0.0.1-beta.28",
5
5
  "license": "MIT",
6
6
  "repository": "tanstack/router",
7
7
  "homepage": "https://tanstack.com/router/",
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 =