@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.
@@ -1201,6 +1201,7 @@ function toValue(mix) {
1201
1201
  var str = decodeURIComponent(mix);
1202
1202
  if (str === 'false') return false;
1203
1203
  if (str === 'true') return true;
1204
+ if (str.charAt(0) === '0') return str;
1204
1205
  return +str * 0 === 0 ? +str : str;
1205
1206
  }
1206
1207
 
@@ -1729,9 +1730,9 @@ function stringifySearchWith(stringify) {
1729
1730
 
1730
1731
  var _window$document;
1731
1732
  // Detect if we're in the DOM
1732
- const isServer = Boolean(typeof window === 'undefined' || !((_window$document = window.document) != null && _window$document.createElement)); // This is the default history object if none is defined
1733
+ const isServer = typeof window === 'undefined' || !((_window$document = window.document) != null && _window$document.createElement); // This is the default history object if none is defined
1733
1734
 
1734
- const createDefaultHistory = () => !isServer ? createBrowserHistory() : createMemoryHistory();
1735
+ const createDefaultHistory = () => isServer ? createMemoryHistory() : createBrowserHistory();
1735
1736
 
1736
1737
  function createRouter(userOptions) {
1737
1738
  var _userOptions$stringif, _userOptions$parseSea;