@tanstack/react-router 0.0.1-beta.1 → 0.0.1-beta.3

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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@tanstack/react-router",
3
3
  "author": "Tanner Linsley",
4
- "version": "0.0.1-beta.1",
4
+ "version": "0.0.1-beta.3",
5
5
  "license": "MIT",
6
6
  "repository": "tanstack/router",
7
- "homepage": "https://react-router.tanstack.com/",
7
+ "homepage": "https://tanstack.com/router/",
8
8
  "description": "",
9
9
  "publishConfig": {
10
10
  "registry": "https://registry.npmjs.org/"
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@babel/runtime": "^7.16.7",
43
- "@tanstack/router-core": "0.0.1-beta.1",
43
+ "@tanstack/router-core": "0.0.1-beta.3",
44
44
  "use-sync-external-store": "^1.2.0"
45
45
  },
46
46
  "devDependencies": {
package/src/index.tsx CHANGED
@@ -179,6 +179,7 @@ const useRouterSubscription = (router: Router<any, any>) => {
179
179
  useSyncExternalStore(
180
180
  (cb) => router.subscribe(() => cb()),
181
181
  () => router.state,
182
+ () => router.state,
182
183
  )
183
184
  }
184
185
 
package/src/qss.ts DELETED
@@ -1,53 +0,0 @@
1
- // @ts-nocheck
2
-
3
- // We're inlining qss here for compression's sake, but we've included it as a hard dependency for the MIT license it requires.
4
-
5
- export function encode(obj, pfx?: string) {
6
- var k,
7
- i,
8
- tmp,
9
- str = ''
10
-
11
- for (k in obj) {
12
- if ((tmp = obj[k]) !== void 0) {
13
- if (Array.isArray(tmp)) {
14
- for (i = 0; i < tmp.length; i++) {
15
- str && (str += '&')
16
- str += encodeURIComponent(k) + '=' + encodeURIComponent(tmp[i])
17
- }
18
- } else {
19
- str && (str += '&')
20
- str += encodeURIComponent(k) + '=' + encodeURIComponent(tmp)
21
- }
22
- }
23
- }
24
-
25
- return (pfx || '') + str
26
- }
27
-
28
- function toValue(mix) {
29
- if (!mix) return ''
30
- var str = decodeURIComponent(mix)
31
- if (str === 'false') return false
32
- if (str === 'true') return true
33
- return +str * 0 === 0 ? +str : str
34
- }
35
-
36
- export function decode(str) {
37
- var tmp,
38
- k,
39
- out = {},
40
- arr = str.split('&')
41
-
42
- while ((tmp = arr.shift())) {
43
- tmp = tmp.split('=')
44
- k = tmp.shift()
45
- if (out[k] !== void 0) {
46
- out[k] = [].concat(out[k], toValue(tmp.shift()))
47
- } else {
48
- out[k] = toValue(tmp.shift())
49
- }
50
- }
51
-
52
- return out
53
- }