@tanstack/react-router 0.0.1-beta.255 → 0.0.1-beta.257

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.
@@ -1132,7 +1132,7 @@
1132
1132
  constructor(options) {
1133
1133
  this.options = options || {};
1134
1134
  this.isRoot = !options?.getParentRoute;
1135
- invariant(!(options.id && options.path), `Route cannot have both an 'id' and a 'path' option.`);
1135
+ invariant(!(options?.id && options?.path), `Route cannot have both an 'id' and a 'path' option.`);
1136
1136
  this.$$typeof = Symbol.for('react.memo');
1137
1137
  }
1138
1138
  init = opts => {
@@ -3186,7 +3186,7 @@
3186
3186
  const match = useMatch({
3187
3187
  strict: false
3188
3188
  });
3189
- useLayoutEffect$1(() => {
3189
+ React__namespace.useEffect(() => {
3190
3190
  navigate({
3191
3191
  from: props.to ? match.pathname : undefined,
3192
3192
  ...props