@tanstack/router-core 0.0.1-beta.49 → 0.0.1-beta.50
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/router.js +1 -10
- package/build/cjs/router.js.map +1 -1
- package/build/esm/index.js +1 -10
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +148 -148
- package/build/umd/index.development.js +1 -10
- 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/router.ts +1 -14
package/package.json
CHANGED
package/src/router.ts
CHANGED
|
@@ -319,10 +319,7 @@ export class Router<
|
|
|
319
319
|
fetchServerDataFn: options?.fetchServerDataFn ?? defaultFetchServerDataFn,
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
this.history =
|
|
323
|
-
this.options?.history ?? isServer
|
|
324
|
-
? createMemoryHistory()
|
|
325
|
-
: createBrowserHistory()
|
|
322
|
+
this.history = this.options?.history ?? createBrowserHistory()
|
|
326
323
|
this.store = createStore(getInitialRouterState())
|
|
327
324
|
this.basepath = ''
|
|
328
325
|
|
|
@@ -1216,16 +1213,6 @@ export class Router<
|
|
|
1216
1213
|
|
|
1217
1214
|
const parsedSearch = this.options.parseSearch(search)
|
|
1218
1215
|
|
|
1219
|
-
console.log({
|
|
1220
|
-
pathname: pathname,
|
|
1221
|
-
searchStr: search,
|
|
1222
|
-
search: replaceEqualDeep(previousLocation?.search, parsedSearch),
|
|
1223
|
-
hash: hash.split('#').reverse()[0] ?? '',
|
|
1224
|
-
href: `${pathname}${search}${hash}`,
|
|
1225
|
-
state: state as LocationState,
|
|
1226
|
-
key: state?.key || '__init__',
|
|
1227
|
-
})
|
|
1228
|
-
|
|
1229
1216
|
return {
|
|
1230
1217
|
pathname: pathname,
|
|
1231
1218
|
searchStr: search,
|