atom.io 0.9.4 → 0.9.5
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/data/dist/index.js.map +1 -1
- package/data/dist/index.mjs.map +1 -1
- package/data/src/struct-family.ts +8 -6
- package/internal/dist/index.d.mts +2 -1
- package/internal/dist/index.d.ts +2 -1
- package/internal/dist/index.js +13 -3
- package/internal/dist/index.js.map +1 -1
- package/internal/dist/index.mjs +13 -4
- package/internal/dist/index.mjs.map +1 -1
- package/internal/src/caching.ts +13 -0
- package/internal/src/set-state/evict-downstream.ts +2 -3
- package/introspection/dist/index.js.map +1 -1
- package/introspection/dist/index.mjs.map +1 -1
- package/introspection/src/attach-timeline-family.ts +4 -1
- package/introspection/src/attach-transaction-logs.ts +4 -1
- package/json/dist/index.js.map +1 -1
- package/json/dist/index.mjs.map +1 -1
- package/json/src/select-json-family.ts +8 -3
- package/package.json +10 -11
- package/react-devtools/dist/index.js.map +1 -1
- package/react-devtools/dist/index.mjs.map +1 -1
- package/react-devtools/src/StateIndex.tsx +13 -11
|
@@ -16,17 +16,19 @@ import { StoreEditor } from "./StateEditor"
|
|
|
16
16
|
|
|
17
17
|
const findStateTypeState = selectorFamily<string, { key: string }>({
|
|
18
18
|
key: `👁🗨 State Type`,
|
|
19
|
-
get:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
state
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
get:
|
|
20
|
+
(token) =>
|
|
21
|
+
({ get }) => {
|
|
22
|
+
let state: unknown
|
|
23
|
+
try {
|
|
24
|
+
state = get(token as any)
|
|
25
|
+
} catch (error) {
|
|
26
|
+
return `error`
|
|
27
|
+
}
|
|
28
|
+
if (state === undefined) return `undefined`
|
|
29
|
+
if (isJson(state)) return refineJsonType(state).type
|
|
30
|
+
return Object.getPrototypeOf(state).constructor.name
|
|
31
|
+
},
|
|
30
32
|
})
|
|
31
33
|
|
|
32
34
|
export const StateIndexLeafNode: FC<{
|