@tanstack/router-core 0.0.1-beta.2 → 0.0.1-beta.4
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/packages/router-core/src/qss.js +1 -0
- package/build/cjs/packages/router-core/src/qss.js.map +1 -1
- package/build/cjs/packages/router-core/src/router.js +2 -2
- package/build/cjs/packages/router-core/src/router.js.map +1 -1
- package/build/esm/index.js +3 -2
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +134 -134
- package/build/umd/index.development.js +3 -2
- 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/qss.ts +1 -0
- package/src/router.ts +3 -4
|
@@ -1156,6 +1156,7 @@
|
|
|
1156
1156
|
var str = decodeURIComponent(mix);
|
|
1157
1157
|
if (str === 'false') return false;
|
|
1158
1158
|
if (str === 'true') return true;
|
|
1159
|
+
if (str.charAt(0) === '0') return str;
|
|
1159
1160
|
return +str * 0 === 0 ? +str : str;
|
|
1160
1161
|
}
|
|
1161
1162
|
|
|
@@ -1684,9 +1685,9 @@
|
|
|
1684
1685
|
|
|
1685
1686
|
var _window$document;
|
|
1686
1687
|
// Detect if we're in the DOM
|
|
1687
|
-
const isServer =
|
|
1688
|
+
const isServer = typeof window === 'undefined' || !((_window$document = window.document) != null && _window$document.createElement); // This is the default history object if none is defined
|
|
1688
1689
|
|
|
1689
|
-
const createDefaultHistory = () =>
|
|
1690
|
+
const createDefaultHistory = () => isServer ? createMemoryHistory() : createBrowserHistory();
|
|
1690
1691
|
|
|
1691
1692
|
function createRouter(userOptions) {
|
|
1692
1693
|
var _userOptions$stringif, _userOptions$parseSea;
|