@tanstack/react-router 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/router-core/build/esm/index.js +3 -2
- package/build/cjs/router-core/build/esm/index.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 +27 -27
- package/build/umd/index.development.js +3 -2
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +2 -2
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
|
@@ -1170,6 +1170,7 @@ function toValue(mix) {
|
|
|
1170
1170
|
var str = decodeURIComponent(mix);
|
|
1171
1171
|
if (str === 'false') return false;
|
|
1172
1172
|
if (str === 'true') return true;
|
|
1173
|
+
if (str.charAt(0) === '0') return str;
|
|
1173
1174
|
return +str * 0 === 0 ? +str : str;
|
|
1174
1175
|
}
|
|
1175
1176
|
|
|
@@ -1698,9 +1699,9 @@ function stringifySearchWith(stringify) {
|
|
|
1698
1699
|
|
|
1699
1700
|
var _window$document;
|
|
1700
1701
|
// Detect if we're in the DOM
|
|
1701
|
-
const isServer =
|
|
1702
|
+
const isServer = typeof window === 'undefined' || !((_window$document = window.document) != null && _window$document.createElement); // This is the default history object if none is defined
|
|
1702
1703
|
|
|
1703
|
-
const createDefaultHistory = () =>
|
|
1704
|
+
const createDefaultHistory = () => isServer ? createMemoryHistory() : createBrowserHistory();
|
|
1704
1705
|
|
|
1705
1706
|
function createRouter(userOptions) {
|
|
1706
1707
|
var _userOptions$stringif, _userOptions$parseSea;
|