@tanstack/router-core 1.162.9 → 1.163.2

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.
@@ -1,5 +1,5 @@
1
- import { Store } from '@tanstack/store';
2
1
  import { loadRouteChunk } from './load-matches.cjs';
2
+ import { Store } from '@tanstack/store';
3
3
  import { LRUCache } from './lru-cache.cjs';
4
4
  import { ProcessRouteTreeResult, ProcessedTree } from './new-process-route-tree.cjs';
5
5
  import { SearchParser, SearchSerializer } from './searchParams.cjs';
@@ -1,5 +1,5 @@
1
- import { Store } from '@tanstack/store';
2
1
  import { loadRouteChunk } from './load-matches.js';
2
+ import { Store } from '@tanstack/store';
3
3
  import { LRUCache } from './lru-cache.js';
4
4
  import { ProcessRouteTreeResult, ProcessedTree } from './new-process-route-tree.js';
5
5
  import { SearchParser, SearchSerializer } from './searchParams.js';
@@ -1,4 +1,4 @@
1
- import { Store } from "@tanstack/store";
1
+ import { createStore } from "@tanstack/store";
2
2
  import { createBrowserHistory, parseHref } from "@tanstack/history";
3
3
  import { isServer } from "@tanstack/router-core/isServer";
4
4
  import { batch } from "./utils/batch.js";
@@ -137,7 +137,7 @@ class RouterCore {
137
137
  getInitialRouterState(this.latestLocation)
138
138
  );
139
139
  } else {
140
- this.__store = new Store(getInitialRouterState(this.latestLocation));
140
+ this.__store = createStore(getInitialRouterState(this.latestLocation));
141
141
  setupScrollRestoration(this);
142
142
  }
143
143
  }