@tanstack/react-router-devtools 0.0.1-beta.80 → 0.0.1-beta.82

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.
@@ -63,22 +63,7 @@
63
63
  }
64
64
 
65
65
  /**
66
- * router
67
- *
68
- * Copyright (c) TanStack
69
- *
70
- * This source code is licensed under the MIT license found in the
71
- * LICENSE.md file in the root directory of this source tree.
72
- *
73
- * @license MIT
74
- */
75
-
76
- function last(arr) {
77
- return arr[arr.length - 1];
78
- }
79
-
80
- /**
81
- * react-store
66
+ * store
82
67
  *
83
68
  * Copyright (c) TanStack
84
69
  *
@@ -87,11 +72,6 @@
87
72
  *
88
73
  * @license MIT
89
74
  */
90
-
91
- function useStore(store, selector = d => d, compareShallow) {
92
- const slice = withSelector.useSyncExternalStoreWithSelector(store.subscribe, () => store.state, () => store.state, selector, compareShallow ? shallow : undefined);
93
- return slice;
94
- }
95
75
  function shallow(objA, objB) {
96
76
  if (Object.is(objA, objB)) {
97
77
  return true;
@@ -134,6 +114,37 @@
134
114
  return true;
135
115
  }
136
116
 
117
+ /**
118
+ * router
119
+ *
120
+ * Copyright (c) TanStack
121
+ *
122
+ * This source code is licensed under the MIT license found in the
123
+ * LICENSE.md file in the root directory of this source tree.
124
+ *
125
+ * @license MIT
126
+ */
127
+
128
+ function last(arr) {
129
+ return arr[arr.length - 1];
130
+ }
131
+
132
+ /**
133
+ * react-store
134
+ *
135
+ * Copyright (c) TanStack
136
+ *
137
+ * This source code is licensed under the MIT license found in the
138
+ * LICENSE.md file in the root directory of this source tree.
139
+ *
140
+ * @license MIT
141
+ */
142
+
143
+ function useStore(store, selector = d => d, compareShallow) {
144
+ const slice = withSelector.useSyncExternalStoreWithSelector(store.subscribe, () => store.state, () => store.state, selector, compareShallow ? shallow : undefined);
145
+ return slice;
146
+ }
147
+
137
148
  /**
138
149
  * react-router
139
150
  *