@dxos/react-async 2.28.2 → 2.28.5-dev.4dea7f41

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/README.md CHANGED
@@ -19,7 +19,6 @@ import 'raf/polyfill';
19
19
  import { act } from 'react-dom/test-utils';
20
20
  ```
21
21
 
22
-
23
22
  ### Next
24
23
 
25
24
  Evaluate the following:
@@ -2,6 +2,7 @@ export * from './useAsyncEffect';
2
2
  export * from './useControlledState';
3
3
  export * from './useDynamicRef';
4
4
  export * from './useMounted';
5
+ export * from './useStateRef';
5
6
  export * from './useStateUpdater';
6
7
  export * from './useStateWithRef';
7
8
  export * from './useTimestamp';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC"}
package/dist/src/index.js CHANGED
@@ -17,6 +17,7 @@ __exportStar(require("./useAsyncEffect"), exports);
17
17
  __exportStar(require("./useControlledState"), exports);
18
18
  __exportStar(require("./useDynamicRef"), exports);
19
19
  __exportStar(require("./useMounted"), exports);
20
+ __exportStar(require("./useStateRef"), exports);
20
21
  __exportStar(require("./useStateUpdater"), exports);
21
22
  __exportStar(require("./useStateWithRef"), exports);
22
23
  __exportStar(require("./useTimestamp"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;AAEF,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,+CAA6B;AAC7B,oDAAkC;AAClC,oDAAkC;AAClC,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;AAEF,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,+CAA6B;AAC7B,gDAA8B;AAC9B,oDAAkC;AAClC,oDAAkC;AAClC,iDAA+B"}
@@ -4,7 +4,7 @@ import { Dispatch, SetStateAction } from 'react';
4
4
  * The optional callback is triggered only if the state is updated internally.
5
5
  *
6
6
  * ```tsx
7
- * const Component = ({ value: controlledValue, onChange }: { value: string, onChange: (value:string) => void }) => {
7
+ * const Component = ({ value: controlledValue, onChange }) => {
8
8
  * const [value, setValue] = useControlledState(controlledValue, onChange);
9
9
  * const handleUpdate = (value: string) => setValue(value);
10
10
  * }
@@ -10,7 +10,7 @@ const react_1 = require("react");
10
10
  * The optional callback is triggered only if the state is updated internally.
11
11
  *
12
12
  * ```tsx
13
- * const Component = ({ value: controlledValue, onChange }: { value: string, onChange: (value:string) => void }) => {
13
+ * const Component = ({ value: controlledValue, onChange }) => {
14
14
  * const [value, setValue] = useControlledState(controlledValue, onChange);
15
15
  * const handleUpdate = (value: string) => setValue(value);
16
16
  * }
@@ -0,0 +1,16 @@
1
+ import { Dispatch, RefObject, SetStateAction } from 'react';
2
+ /**
3
+ * Extension of useState to return an up-to-date reference.
4
+ * E.g., to use in callbacks where the state value is stale.
5
+ *
6
+ * ```tsx
7
+ * const [value, setValue, valueRef] = useStateRef<string>();
8
+ * const handleAction = () => {
9
+ * console.log(valueRef.current);
10
+ * }
11
+ * ```
12
+ *
13
+ * @param initialValue
14
+ */
15
+ export declare const useStateRef: <V>(initialValue?: V | (() => V) | undefined) => [V | undefined, Dispatch<SetStateAction<V | undefined>>, RefObject<V | undefined>];
16
+ //# sourceMappingURL=useStateRef.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStateRef.d.ts","sourceRoot":"","sources":["../../src/useStateRef.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAA+B,MAAM,OAAO,CAAC;AAEzF;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,WAAW,qIAUvB,CAAC"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2022 DXOS.org
4
+ //
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useStateRef = void 0;
7
+ const react_1 = require("react");
8
+ /**
9
+ * Extension of useState to return an up-to-date reference.
10
+ * E.g., to use in callbacks where the state value is stale.
11
+ *
12
+ * ```tsx
13
+ * const [value, setValue, valueRef] = useStateRef<string>();
14
+ * const handleAction = () => {
15
+ * console.log(valueRef.current);
16
+ * }
17
+ * ```
18
+ *
19
+ * @param initialValue
20
+ */
21
+ // TODO(burdon): Replace with useCallback?
22
+ const useStateRef = (initialValue) => {
23
+ const [value, setValue] = (0, react_1.useState)(initialValue);
24
+ const ref = (0, react_1.useRef)();
25
+ (0, react_1.useEffect)(() => {
26
+ ref.current = value;
27
+ }, [initialValue, value]);
28
+ return [value, setValue, ref];
29
+ };
30
+ exports.useStateRef = useStateRef;
31
+ //# sourceMappingURL=useStateRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStateRef.js","sourceRoot":"","sources":["../../src/useStateRef.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,iCAAyF;AAEzF;;;;;;;;;;;;GAYG;AACH,0CAA0C;AACnC,MAAM,WAAW,GAAG,CACzB,YAA4B,EACwD,EAAE;IACtF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAgB,YAAY,CAAC,CAAC;IAChE,MAAM,GAAG,GAAG,IAAA,cAAM,GAAK,CAAC;IACxB,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,GAAG,CAAC,OAAO,GAAG,KAAK,CAAC;IACtB,CAAC,EAAE,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC,CAAC;IAE1B,OAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAC;AAChC,CAAC,CAAC;AAVW,QAAA,WAAW,eAUtB"}
@@ -32,11 +32,16 @@ const react_dom_1 = __importDefault(require("react-dom"));
32
32
  const test_utils_1 = require("react-dom/test-utils");
33
33
  const wait_for_expect_1 = __importDefault(require("wait-for-expect"));
34
34
  const useStateUpdater_1 = require("./useStateUpdater");
35
- // Don't copy this.
36
- const complex = {};
35
+ // Expensive object to copy.
36
+ const complex = {
37
+ data: Array.from({ length: 100 }).map((_, i) => ({
38
+ title: String(i)
39
+ }))
40
+ };
37
41
  const Test = () => {
38
42
  const [value, , updateValue] = (0, useStateUpdater_1.useStateUpdater)({ complex, items: [] });
39
43
  (0, react_1.useEffect)(() => {
44
+ // https://github.com/kolodny/immutability-helper
40
45
  updateValue({
41
46
  items: {
42
47
  $push: [1, 2, 3]
@@ -1 +1 @@
1
- {"version":3,"file":"useStateUpdater.test.js","sourceRoot":"","sources":["../../src/useStateUpdater.test.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;AAEF,oDAA4B;AAC5B,wBAAsB;AACtB,+CAAyC;AACzC,0DAAiC;AACjC,qDAA2C;AAC3C,sEAA4C;AAE5C,uDAAoD;AAEpD,mBAAmB;AACnB,MAAM,OAAO,GAAG,EAEf,CAAC;AAEF,MAAM,IAAI,GAAG,GAAG,EAAE;IAChB,MAAM,CAAC,KAAK,EAAC,EAAE,WAAW,CAAC,GAAG,IAAA,iCAAe,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACtE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,WAAW,CAAC;YACV,KAAK,EAAE;gBACL,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;aACjB;SACF,CAAC,CAAC;IACL,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,2CAAM,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAO,CACnC,CAAC;AACJ,CAAC,CAAC;AAEF,IAAI,aAAkB,CAAC;AAEvB,UAAU,CAAC,GAAG,EAAE;IACd,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC9C,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;AAC3C,CAAC,CAAC,CAAC;AAEH,SAAS,CAAC,GAAG,EAAE;IACb,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IACzC,aAAa,GAAG,IAAI,CAAC;AACvB,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,EAAE,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE;QAClC,IAAA,gBAAG,EAAC,GAAG,EAAE;YACP,mBAAQ,CAAC,MAAM,CAAC,8BAAC,IAAI,OAAG,EAAE,aAAa,CAAC,CAAC;QAC3C,CAAC,CAAC,CAAC;QAEH,MAAM,GAAG,GAAG,aAAa,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC/C,MAAM,IAAA,yBAAa,EAAC,GAAG,EAAE;YACvB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;YACzC,IAAA,gBAAM,EAAC,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;QACtD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"useStateUpdater.test.js","sourceRoot":"","sources":["../../src/useStateUpdater.test.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;AAEF,oDAA4B;AAC5B,wBAAsB;AACtB,+CAAyC;AACzC,0DAAiC;AACjC,qDAA2C;AAC3C,sEAA4C;AAE5C,uDAAoD;AAEpD,4BAA4B;AAC5B,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAC/C,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;KACjB,CAAC,CAAC;CACJ,CAAC;AAEF,MAAM,IAAI,GAAG,GAAG,EAAE;IAChB,MAAM,CAAC,KAAK,EAAC,EAAE,WAAW,CAAC,GAAG,IAAA,iCAAe,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACtE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,iDAAiD;QACjD,WAAW,CAAC;YACV,KAAK,EAAE;gBACL,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;aACjB;SACF,CAAC,CAAC;IACL,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,2CAAM,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAO,CACnC,CAAC;AACJ,CAAC,CAAC;AAEF,IAAI,aAAkB,CAAC;AAEvB,UAAU,CAAC,GAAG,EAAE;IACd,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC9C,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;AAC3C,CAAC,CAAC,CAAC;AAEH,SAAS,CAAC,GAAG,EAAE;IACb,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IACzC,aAAa,GAAG,IAAI,CAAC;AACvB,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,EAAE,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE;QAClC,IAAA,gBAAG,EAAC,GAAG,EAAE;YACP,mBAAQ,CAAC,MAAM,CAAC,8BAAC,IAAI,OAAG,EAAE,aAAa,CAAC,CAAC;QAC3C,CAAC,CAAC,CAAC;QAEH,MAAM,GAAG,GAAG,aAAa,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC/C,MAAM,IAAA,yBAAa,EAAC,GAAG,EAAE;YACvB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;YACzC,IAAA,gBAAM,EAAC,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;QACtD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -2,8 +2,13 @@
2
2
  * Provides a timestamp that can be used to force re-rendering based on deps.
3
3
  *
4
4
  * ```tsx
5
- * const [, update] = useTimestamp();
6
- * const handleRefresh = () => update();
5
+ * const Test = () => {
6
+ * const [ts, update] = useTimestamp();
7
+ * const handleRefresh = () => update();
8
+ * return (
9
+ * <div>{ts}</div>
10
+ * );
11
+ * };
7
12
  * ```
8
13
  *
9
14
  * @param deps
@@ -1 +1 @@
1
- {"version":3,"file":"useTimestamp.d.ts","sourceRoot":"","sources":["../../src/useTimestamp.ts"],"names":[],"mappings":"AAMA;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,gCAAmB,CAAC,MAAM,EAAE,MAAM,IAAI,EAAE,MAAM,GAAG,SAAS,CAUlF,CAAC"}
1
+ {"version":3,"file":"useTimestamp.d.ts","sourceRoot":"","sources":["../../src/useTimestamp.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,YAAY,gCAAmB,CAAC,MAAM,EAAE,MAAM,IAAI,EAAE,MAAM,GAAG,SAAS,CAUlF,CAAC"}
@@ -9,8 +9,13 @@ const react_1 = require("react");
9
9
  * Provides a timestamp that can be used to force re-rendering based on deps.
10
10
  *
11
11
  * ```tsx
12
- * const [, update] = useTimestamp();
13
- * const handleRefresh = () => update();
12
+ * const Test = () => {
13
+ * const [ts, update] = useTimestamp();
14
+ * const handleRefresh = () => update();
15
+ * return (
16
+ * <div>{ts}</div>
17
+ * );
18
+ * };
14
19
  * ```
15
20
  *
16
21
  * @param deps
@@ -1 +1 @@
1
- {"version":3,"file":"useTimestamp.js","sourceRoot":"","sources":["../../src/useTimestamp.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,iCAA4C;AAE5C;;;;;;;;;GASG;AACI,MAAM,YAAY,GAAG,CAAC,IAAY,EAA4C,EAAE;IACrF,MAAM,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAA2C;QACjG,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;KACtB,CAAC,CAAC;IAEH,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,YAAY,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC;IAC/D,CAAC,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IAEf,OAAO,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC;AACnG,CAAC,CAAC;AAVW,QAAA,YAAY,gBAUvB"}
1
+ {"version":3,"file":"useTimestamp.js","sourceRoot":"","sources":["../../src/useTimestamp.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,iCAA4C;AAE5C;;;;;;;;;;;;;;GAcG;AACI,MAAM,YAAY,GAAG,CAAC,IAAY,EAA4C,EAAE;IACrF,MAAM,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAA2C;QACjG,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;KACtB,CAAC,CAAC;IAEH,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,YAAY,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC;IAC/D,CAAC,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IAEf,OAAO,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC;AACnG,CAAC,CAAC;AAVW,QAAA,YAAY,gBAUvB"}
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ title: string;
3
+ };
4
+ export default _default;
5
+ export declare const Primary: () => JSX.Element;
6
+ //# sourceMappingURL=async.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"async.stories.d.ts","sourceRoot":"","sources":["../../stories/async.stories.tsx"],"names":[],"mappings":";;;AAQA,wBAEE;AAmCF,eAAO,MAAM,OAAO,mBAMnB,CAAC"}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2021 DXOS.org
4
+ //
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
8
+ }) : (function(o, m, k, k2) {
9
+ if (k2 === undefined) k2 = k;
10
+ o[k2] = m[k];
11
+ }));
12
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
13
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
14
+ }) : function(o, v) {
15
+ o["default"] = v;
16
+ });
17
+ var __importStar = (this && this.__importStar) || function (mod) {
18
+ if (mod && mod.__esModule) return mod;
19
+ var result = {};
20
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
21
+ __setModuleDefault(result, mod);
22
+ return result;
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.Primary = void 0;
26
+ const react_1 = __importStar(require("react"));
27
+ const src_1 = require("../src");
28
+ exports.default = {
29
+ title: 'react-async'
30
+ };
31
+ const AsyncComponent = ({ nocheck = false }) => {
32
+ const [value, setValue] = (0, react_1.useState)('Processing...');
33
+ const isMounted = (0, src_1.useMounted)();
34
+ (0, react_1.useEffect)(() => {
35
+ setTimeout(() => {
36
+ if (nocheck || isMounted()) { // Check if still mounted.
37
+ setValue('Done');
38
+ }
39
+ }, 2000);
40
+ }, []);
41
+ return (react_1.default.createElement("div", null, value));
42
+ };
43
+ const TestApp = () => {
44
+ const [show, setShow] = (0, react_1.useState)(true);
45
+ (0, react_1.useEffect)(() => {
46
+ setTimeout(() => {
47
+ setShow(false); // Remove element.
48
+ }, 1000);
49
+ }, []);
50
+ if (!show) {
51
+ return null;
52
+ }
53
+ return (react_1.default.createElement(AsyncComponent, { nocheck: true }));
54
+ };
55
+ const Primary = () => {
56
+ return (react_1.default.createElement("div", { style: { padding: 16 } },
57
+ react_1.default.createElement(TestApp, null)));
58
+ };
59
+ exports.Primary = Primary;
60
+ //# sourceMappingURL=async.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"async.stories.js","sourceRoot":"","sources":["../../stories/async.stories.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;AAEF,+CAAmD;AAEnD,gCAAoC;AAEpC,kBAAe;IACb,KAAK,EAAE,aAAa;CACrB,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,EAAE,OAAO,GAAG,KAAK,EAAyB,EAAE,EAAE;IACpE,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAC,eAAe,CAAC,CAAC;IACpD,MAAM,SAAS,GAAG,IAAA,gBAAU,GAAE,CAAC;IAC/B,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,UAAU,CAAC,GAAG,EAAE;YACd,IAAI,OAAO,IAAI,SAAS,EAAE,EAAE,EAAE,0BAA0B;gBACtD,QAAQ,CAAC,MAAM,CAAC,CAAC;aAClB;QACH,CAAC,EAAE,IAAI,CAAC,CAAC;IACX,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,2CAAM,KAAK,CAAO,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,OAAO,GAAG,GAAG,EAAE;IACnB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC;IACvC,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,UAAU,CAAC,GAAG,EAAE;YACd,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,kBAAkB;QACpC,CAAC,EAAE,IAAI,CAAC,CAAC;IACX,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,8BAAC,cAAc,IAAC,OAAO,SAAG,CAC3B,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,OAAO,GAAG,GAAG,EAAE;IAC1B,OAAO,CACL,uCAAK,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACzB,8BAAC,OAAO,OAAG,CACP,CACP,CAAC;AACJ,CAAC,CAAC;AANW,QAAA,OAAO,WAMlB"}
@@ -1 +1 @@
1
- {"program":{"fileNames":["../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es5.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.esnext.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.dom.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../common/temp/node_modules/.pnpm/@types+react@17.0.37/node_modules/@types/react/global.d.ts","../../../../common/temp/node_modules/.pnpm/csstype@3.0.10/node_modules/csstype/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+prop-types@15.7.4/node_modules/@types/prop-types/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+scheduler@0.16.2/node_modules/@types/scheduler/tracing.d.ts","../../../../common/temp/node_modules/.pnpm/@types+react@17.0.37/node_modules/@types/react/index.d.ts","../src/useAsyncEffect.ts","../src/useControlledState.ts","../src/useDynamicRef.ts","../src/useMounted.ts","../../../../common/temp/node_modules/.pnpm/immutability-helper@3.1.1/node_modules/immutability-helper/index.d.ts","../src/useStateUpdater.ts","../src/useStateWithRef.ts","../src/useTimestamp.ts","../src/index.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/assert.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/globals.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/async_hooks.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/buffer.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/child_process.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/cluster.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/console.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/constants.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/crypto.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/dgram.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/dns.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/domain.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/events.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/fs.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/fs/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/http.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/http2.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/https.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/inspector.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/module.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/net.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/os.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/path.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/perf_hooks.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/process.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/punycode.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/querystring.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/readline.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/repl.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/stream.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/string_decoder.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/timers.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/tls.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/trace_events.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/tty.d.ts","../../../../common/temp/node_modules/.pnpm/querystring@0.2.1/node_modules/querystring/decode.d.ts","../../../../common/temp/node_modules/.pnpm/querystring@0.2.1/node_modules/querystring/encode.d.ts","../../../../common/temp/node_modules/.pnpm/querystring@0.2.1/node_modules/querystring/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/url.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/util.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/v8.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/vm.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/wasi.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/worker_threads.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/zlib.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/globals.global.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+istanbul-lib-coverage@2.0.3/node_modules/@types/istanbul-lib-coverage/index.d.ts","../../../../common/temp/node_modules/.pnpm/@jest+types@27.4.2/node_modules/@jest/types/build/Global.d.ts","../../../../common/temp/node_modules/.pnpm/@jest+types@27.4.2/node_modules/@jest/types/build/Circus.d.ts","../../../../common/temp/node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+istanbul-lib-report@3.0.0/node_modules/@types/istanbul-lib-report/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+istanbul-reports@3.0.1/node_modules/@types/istanbul-reports/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+yargs-parser@20.2.1/node_modules/@types/yargs-parser/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+yargs@16.0.4/node_modules/@types/yargs/index.d.ts","../../../../common/temp/node_modules/.pnpm/@jest+types@27.4.2/node_modules/@jest/types/build/Config.d.ts","../../../../common/temp/node_modules/.pnpm/@jest+types@27.4.2/node_modules/@jest/types/build/TestResult.d.ts","../../../../common/temp/node_modules/.pnpm/@jest+types@27.4.2/node_modules/@jest/types/build/Transform.d.ts","../../../../common/temp/node_modules/.pnpm/@jest+types@27.4.2/node_modules/@jest/types/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@27.4.2/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../common/temp/node_modules/.pnpm/pretty-format@27.4.2/node_modules/pretty-format/build/types.d.ts","../../../../common/temp/node_modules/.pnpm/pretty-format@27.4.2/node_modules/pretty-format/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@27.4.2/node_modules/jest-diff/build/types.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@27.4.2/node_modules/jest-diff/build/diffLines.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@27.4.2/node_modules/jest-diff/build/printDiffs.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@27.4.2/node_modules/jest-diff/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/jest-matcher-utils@27.4.2/node_modules/jest-matcher-utils/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/expect@27.0.6/node_modules/expect/build/jestMatchersObject.d.ts","../../../../common/temp/node_modules/.pnpm/expect@27.0.6/node_modules/expect/build/types.d.ts","../../../../common/temp/node_modules/.pnpm/expect@27.0.6/node_modules/expect/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+react-dom@17.0.11/node_modules/@types/react-dom/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+react-dom@17.0.11/node_modules/@types/react-dom/test-utils/index.d.ts","../../../../common/temp/node_modules/.pnpm/wait-for-expect@3.0.2/node_modules/wait-for-expect/lib/index.d.ts","../src/useAsyncEffect.test.tsx","../src/useStateUpdater.test.tsx","../stories/stale-callback.stories.tsx","../stories/unmounted.stories.tsx","../../../../common/temp/node_modules/.pnpm/@types+mocha@8.2.3/node_modules/@types/mocha/index.d.ts"],"fileInfos":[{"version":"89f78430e422a0f06d13019d60d5a45b37ec2d28e67eb647f73b1b0d19a46b72","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"abba1071bfd89e55e88a054b0c851ea3e8a494c340d0f3fab19eb18f6afb0c9e","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"e8c9f4e445a489991ca1a4232667de3ac36b07ba75ea335971fbeacf2d26fe67","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},{"version":"ecf78e637f710f340ec08d5d92b3f31b134a46a4fcf2e758690d8c46ce62cba6","affectsGlobalScope":true},"381899b8d1d4c1be716f18cb5242ba39f66f4b1e31d45af62a32a99f8edcb39d","f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"1bc82f5b3bb93df76d19730c84467b0b346187198537135d63a672956f323720","affectsGlobalScope":true},"484b1f5459950e94c97a0b86c3200b96062608b9b25473070501079530ef6a8c","62857228847057d08f5c763ffb37540cda0ce86a13cdf69cf43816d748f3f30d","c884c246c835927718fe906e52fd9192b0251377b77fcf4fc0fb98bf648dcf92","d456c7a5d9d1aefdb945d56a173b0345fa0ffb33483e4ccb92cc96546c91885b","57fa82b21b6aa92c2f0e72a811842121e1c12e39382a24c54798a8b77a51c1e7","d38c5704d50131023f0433185560994abbac9b2dde16785f045b665c6e613ad4","5256f1b8277c43012801540b6f845631b8bfecdff5586bf54a0a277c02a2bd9e","393ba48f74d805a3a46eb1039fa8849826230700631b326d83faa1db2856631e","395386788c5c64560afd4cc4b0ed9c35d586d437f864d377ab5c176ad39bfcef","4c2c4f53e8eedd970f8afa369d7371544fb6231bf95e659f8602e09abe74d5a5",{"version":"dc5f6951bbf5b544349cbdef895c08dee6929818abd27d7d53c38cf1209091b3","affectsGlobalScope":true},"64e2803203b14d7f104f570f2152fde13abb6edc17b2ddb33d81ad86cf43d494","2c8d9e3331aec52d9a6d4040352c00282c3abaf48053ed0944528a4845c9caa3","9b2a8f604e7c0482a9061755f00b287cc99bd8718dc82d8207dd74c599b6dc43","d0fc76a91c828fbe3f0be5d683273634b7b101068333ceed975a8a9ac464137b",{"version":"1a048ff164b8d9609f5de3139d4e37f6e8a82af82087ac414b9208f52ef8aac7","affectsGlobalScope":true},"3111079f3cb5f2b9c812ca3f46161562bce5bfb355e915f46ed46c41714dc1c3","64576aba4ff801004122056ccd049f0597aa471dcfd7670a6a0b877ee8dd97c0","b32b6b16cb0bda68199582ad6f22242d07ee75fac9b1f28a98cd838afc5eea45","4441ee4119824bfaebc49308559edd7545978f9cb41a40f115074e1031dde75f",{"version":"60693a88462d0e97900123b5bf7c73e146ce0cc94da46a61fe6775b430d2ff05","affectsGlobalScope":true},{"version":"588c69eda58b9202676ec7ca11a72c3762819b46a0ed72462c769846153c447c","affectsGlobalScope":true},"cc829932ffaf5c49092f878bec18af1fa5d8591b45a45e2b7f757f793cb3b4ed","47db10fdc4e76c4f4598cf7c91ba6bfde6cf6d8082c51860fe751643bf359739","05d7d95e24bc2897bf20ce041c3dc3cca814e07148a93999145b1a0ad491094c","d1080e49778c0b2ce656042ebfa43f89dffb96ac00f86a34762188a21857ffd4","0ce99c641ea20b0c0c09d093fc28f18f5ab31dc80033707a1ac3154399de2559","f0c33a0b325d3499cc9aded7d32886f998c9a27b465097c6cc136944d0aafdaa","44e42ed6ec9c4451ebe89524e80ac8564e9dd0988c56e6c58f393c810730595d","03c91e8833eef54dc44db99d7deb469b5e3cec82f23054b4286a2380e0e00996","1606ea615c0a5ea9f5c1376a33e34c0e1112e8dee31a5b3b8a74ce781893aa6f","9fef9de633d01cb7f01f68195626a890ededd25cf96a1e785617d08c8668230d","4455c78d226d061b1203c7614c6c6eb5f4f9db5f00d44ff47d0112de8766fbc4",{"version":"bf89ceb26132596b859cd4d129ce3f447134b444dec87966ba65cd7e8e9e0cb0","affectsGlobalScope":true},"4465a636f5f6e9665a90e30691862c9e0a3ac2edc0e66296704f10865e924f2a","9af781f03d44f5635ed7844be0ce370d9d595d4b4ec67cad88f0fac03255257e","f9fd4c3ef6de27fa0e256f4e75b61711c4be05a3399f7714621d3edc832e36b0","e49290b7a927995c0d7e6b2b9c8296284b68a9036d9966531de65185269258d7","a11d4ba43bf0825d7285d54dec6cb951685cd458a4de3c5c1800f7cbf7799009","874ca809b79276460011480a2829f4c8d4db29416dd411f71efbf8f497f0ac09","82e1723b20fa0b15a7da0d1a03fec88348f82f640f7a2f308d6c0fac780cfc7c","e0202c3e09775b86b902f21623e55896cea98750efbdf0691ca7473af06fe551","23a28f834a078986bbf58f4e3705956983ff81c3c2493f3db3e5f0e8a9507779","4febdf7f3ec92706c58e0b4e8159cd6de718284ef384260b07c9641c13fc70ce","ad7e61eca7f2f8bf47e72695f9f6663b75e41d87ef49abdb17c0cb843862f8aa","ecba2e44af95b0599c269a92628cec22e752868bce37396740deb51a5c547a26","46a9fb41a8f3bc7539eeebc15a6e04b9e55d7537a081615ad3614220d34c3e0f","a2666b43d889b4882ac6ede1c48128bac351886854e94f832b20d3730e5062c5","7335933d9f30dcfd2c4b6080a8b78e81912a7fcefb1dafccb67ca4cb4b3ac23d","a6bfe9de9adef749010c118104b071d14943802ff0614732b47ce4f1c3e383cd","4c3d0e10396646db4a1e917fb852077ee77ae62e512913bef9cccc2bb0f8bd0e","3b220849d58140dcc6718f5b52dcd29fdb79c45bc28f561cbd29eb1cac6cce13","0ee22fce41f7417a24c808d266e91b850629113c104713a35854393d55994beb","22d1b1d965baba05766613e2e6c753bb005d4386c448cafd72c309ba689e8c24",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"2a7d39ea70e483d3ebcde44031b6552940f295349bee8d486e8bdf6380162302","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","b35c484129671a62dbffdd0716d787923ef43f2f93b7e55528f94cef7e131d74","95b6c669e7ed7c5358c03f8aa24986640f6125ee81bb99e70e9155974f7fd253","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","f7e133b20ee2669b6c0e5d7f0cd510868c57cd64b283e68c7f598e30ce9d76d2","6ba73232c9d3267ca36ddb83e335d474d2c0e167481e3dec416c782894e11438","f7dd7280ee4f0420865e6423fe199aeac63d1d66203a8b631077cdc15501ef1f","ef62b4aa372f77458d84c26614b44129f929e263c81b5cd1034f5828a5530412","8610558ae88a43ad794c4ab1da4f0e8e174e0357c88f6cbb21f523e67414e9a9","0b0feb9837c561c0a67b61024328045bb16bac6e4b10f7b0b217d3b8b43b0b12","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","7adecb2c3238794c378d336a8182d4c3dd2c4fa6fa1785e2797a3db550edea62","dc12dc0e5aa06f4e1a7692149b78f89116af823b9e1f1e4eae140cd3e0e674e6","1bfc6565b90c8771615cd8cfcf9b36efc0275e5e83ac7d9181307e96eb495161","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","7f82ef88bdb67d9a850dd1c7cd2d690f33e0f0acd208e3c9eba086f3670d4f73","100db324c7664a9a2a4b76d7131fc69dfdf38d24542afc19825d05f401259fab","80b186d68c99a4cc9443cb3cab6eb9a2a136c65a9973ed403761961ca2cd94e6","00e95882237b1f291eb7ed34acf069003d2e6dc977c374f9798d7ad59b4aabbd","45a63e17814c570ea59407f231ef9c561510bd6edb36f17479b09b44619496c6","eb38f5d75ce5b2e143bf9492c8fc181fe7b96354c1661383acda37425b419edf","095b817a5042af7140cc5c6a59d84fe731156193191b4ec39a37d23e526cc653","1f08f4f96b58e7d21b4b64f1d807e4cf04012216a0173c773ac03d9445ecd9c4","889508e69e7e41a02eb678c78169d8ab3b637a9c22f6f53366904a6cf8570a77","2f3ea3c432abd85e91a5a2a67fdba93f2b8408ba21a4dc19ef6c85ca64b0e23e","51655d3b9ed8affa0cdd097ebce4c28febf138c9b24213fde460363a1794db4e",{"version":"5f186a758a616c107c70e8918db4630d063bd782f22e6e0b17573b125765b40b","affectsGlobalScope":true}],"options":{"composite":true,"declarationMap":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":2,"module":1,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":5},"fileIdsList":[[106,108],[110,112,114],[107],[108,109,115,116,117],[111],[60],[62],[63],[64,72,73,80,89],[64,65,72,80],[66,99],[67,68,73,81],[68,89],[69,70,72,80],[70],[71,72],[72],[72,73,74,89,98],[73,74],[75,80,89,98],[72,73,75,76,80,89,92,98],[75,77,89,92,98],[60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,98,99,100,101,102,103,104,105],[72,78],[79,98],[70,72,80,89],[81],[82],[62,83],[84,94],[85],[86],[72,87],[87,88,99,101],[72,89],[90],[91],[80,92],[93],[80,94],[86,98],[99],[89,100],[101],[102],[72,74,89,98,101,103],[89,104],[50],[50,131],[46,47,48,49],[113],[128],[118,126,127],[119,122],[119,122,123,124],[121],[110,125],[120],[95,96],[51,52,53,54,56,57,58],[50,51,129,130,131,132],[50,56,129,130,131,132],[50,55],[50,59]],"referencedMap":[[109,1],[115,2],[108,3],[118,4],[111,3],[112,5],[60,6],[62,7],[63,8],[64,9],[65,10],[66,11],[67,12],[68,13],[69,14],[70,15],[71,16],[72,17],[73,18],[74,19],[75,20],[76,21],[77,22],[106,23],[78,24],[79,25],[80,26],[81,27],[82,28],[83,29],[84,30],[85,31],[86,32],[87,33],[88,34],[89,35],[90,36],[91,37],[92,38],[93,39],[94,40],[98,41],[99,42],[100,43],[101,44],[102,45],[103,46],[104,47],[130,48],[131,49],[50,50],[114,51],[129,52],[127,52],[128,53],[123,54],[125,55],[124,54],[122,56],[126,57],[121,58],[97,59],[59,60],[133,61],[51,48],[52,48],[53,48],[54,48],[134,62],[56,63],[57,48],[58,48],[135,64],[136,64]],"exportedModulesMap":[[109,1],[115,2],[108,3],[118,4],[111,3],[112,5],[60,6],[62,7],[63,8],[64,9],[65,10],[66,11],[67,12],[68,13],[69,14],[70,15],[71,16],[72,17],[73,18],[74,19],[75,20],[76,21],[77,22],[106,23],[78,24],[79,25],[80,26],[81,27],[82,28],[83,29],[84,30],[85,31],[86,32],[87,33],[88,34],[89,35],[90,36],[91,37],[92,38],[93,39],[94,40],[98,41],[99,42],[100,43],[101,44],[102,45],[103,46],[104,47],[130,48],[131,49],[50,50],[114,51],[129,52],[127,52],[128,53],[123,54],[125,55],[124,54],[122,56],[126,57],[121,58],[97,59],[59,60],[133,61],[51,48],[52,48],[53,48],[54,48],[134,62],[56,63],[57,48],[58,48],[135,64],[136,64]],"semanticDiagnosticsPerFile":[109,115,108,116,117,118,107,111,112,137,60,62,63,64,65,66,67,68,69,70,71,72,73,74,61,105,75,76,77,106,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,98,99,100,101,102,103,104,48,130,131,46,50,49,113,114,110,47,129,127,128,55,119,123,125,124,122,126,121,120,95,96,97,10,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,40,36,37,38,39,8,44,41,42,43,1,9,45,132,59,133,51,52,53,54,134,56,57,58,135,136]},"version":"4.5.3"}
1
+ {"program":{"fileNames":["../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es5.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.esnext.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.dom.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../common/temp/node_modules/.pnpm/@types+react@17.0.37/node_modules/@types/react/global.d.ts","../../../../common/temp/node_modules/.pnpm/csstype@3.0.10/node_modules/csstype/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+prop-types@15.7.4/node_modules/@types/prop-types/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+scheduler@0.16.2/node_modules/@types/scheduler/tracing.d.ts","../../../../common/temp/node_modules/.pnpm/@types+react@17.0.37/node_modules/@types/react/index.d.ts","../src/useAsyncEffect.ts","../src/useControlledState.ts","../src/useDynamicRef.ts","../src/useMounted.ts","../src/useStateRef.ts","../../../../common/temp/node_modules/.pnpm/immutability-helper@3.1.1/node_modules/immutability-helper/index.d.ts","../src/useStateUpdater.ts","../src/useStateWithRef.ts","../src/useTimestamp.ts","../src/index.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/assert.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/globals.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/async_hooks.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/buffer.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/child_process.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/cluster.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/console.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/constants.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/crypto.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/dgram.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/dns.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/domain.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/events.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/fs.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/fs/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/http.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/http2.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/https.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/inspector.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/module.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/net.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/os.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/path.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/perf_hooks.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/process.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/punycode.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/querystring.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/readline.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/repl.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/stream.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/string_decoder.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/timers.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/tls.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/trace_events.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/tty.d.ts","../../../../common/temp/node_modules/.pnpm/querystring@0.2.1/node_modules/querystring/decode.d.ts","../../../../common/temp/node_modules/.pnpm/querystring@0.2.1/node_modules/querystring/encode.d.ts","../../../../common/temp/node_modules/.pnpm/querystring@0.2.1/node_modules/querystring/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/url.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/util.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/v8.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/vm.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/wasi.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/worker_threads.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/zlib.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/globals.global.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+istanbul-lib-coverage@2.0.3/node_modules/@types/istanbul-lib-coverage/index.d.ts","../../../../common/temp/node_modules/.pnpm/@jest+types@27.4.2/node_modules/@jest/types/build/Global.d.ts","../../../../common/temp/node_modules/.pnpm/@jest+types@27.4.2/node_modules/@jest/types/build/Circus.d.ts","../../../../common/temp/node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+istanbul-lib-report@3.0.0/node_modules/@types/istanbul-lib-report/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+istanbul-reports@3.0.1/node_modules/@types/istanbul-reports/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+yargs-parser@20.2.1/node_modules/@types/yargs-parser/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+yargs@16.0.4/node_modules/@types/yargs/index.d.ts","../../../../common/temp/node_modules/.pnpm/@jest+types@27.4.2/node_modules/@jest/types/build/Config.d.ts","../../../../common/temp/node_modules/.pnpm/@jest+types@27.4.2/node_modules/@jest/types/build/TestResult.d.ts","../../../../common/temp/node_modules/.pnpm/@jest+types@27.4.2/node_modules/@jest/types/build/Transform.d.ts","../../../../common/temp/node_modules/.pnpm/@jest+types@27.4.2/node_modules/@jest/types/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@27.4.2/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../common/temp/node_modules/.pnpm/pretty-format@27.4.2/node_modules/pretty-format/build/types.d.ts","../../../../common/temp/node_modules/.pnpm/pretty-format@27.4.2/node_modules/pretty-format/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@27.4.2/node_modules/jest-diff/build/types.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@27.4.2/node_modules/jest-diff/build/diffLines.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@27.4.2/node_modules/jest-diff/build/printDiffs.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@27.4.2/node_modules/jest-diff/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/jest-matcher-utils@27.4.2/node_modules/jest-matcher-utils/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/expect@27.0.6/node_modules/expect/build/jestMatchersObject.d.ts","../../../../common/temp/node_modules/.pnpm/expect@27.0.6/node_modules/expect/build/types.d.ts","../../../../common/temp/node_modules/.pnpm/expect@27.0.6/node_modules/expect/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+react-dom@17.0.11/node_modules/@types/react-dom/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+react-dom@17.0.11/node_modules/@types/react-dom/test-utils/index.d.ts","../../../../common/temp/node_modules/.pnpm/wait-for-expect@3.0.2/node_modules/wait-for-expect/lib/index.d.ts","../src/useAsyncEffect.test.tsx","../src/useStateUpdater.test.tsx","../stories/async.stories.tsx","../stories/stale-callback.stories.tsx","../stories/unmounted.stories.tsx","../../../../common/temp/node_modules/.pnpm/@types+mocha@8.2.3/node_modules/@types/mocha/index.d.ts"],"fileInfos":[{"version":"89f78430e422a0f06d13019d60d5a45b37ec2d28e67eb647f73b1b0d19a46b72","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"abba1071bfd89e55e88a054b0c851ea3e8a494c340d0f3fab19eb18f6afb0c9e","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"e8c9f4e445a489991ca1a4232667de3ac36b07ba75ea335971fbeacf2d26fe67","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},{"version":"ecf78e637f710f340ec08d5d92b3f31b134a46a4fcf2e758690d8c46ce62cba6","affectsGlobalScope":true},"381899b8d1d4c1be716f18cb5242ba39f66f4b1e31d45af62a32a99f8edcb39d","f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"1bc82f5b3bb93df76d19730c84467b0b346187198537135d63a672956f323720","affectsGlobalScope":true},"484b1f5459950e94c97a0b86c3200b96062608b9b25473070501079530ef6a8c","7d21221ac2611d3192eeaca07b0b3971948a304853ce1512d1da259c0cb1349d","c884c246c835927718fe906e52fd9192b0251377b77fcf4fc0fb98bf648dcf92","d456c7a5d9d1aefdb945d56a173b0345fa0ffb33483e4ccb92cc96546c91885b","73528a6c29435403756585dc04b60797b209eeecc66378a13e09625ea05257a1","57fa82b21b6aa92c2f0e72a811842121e1c12e39382a24c54798a8b77a51c1e7","d38c5704d50131023f0433185560994abbac9b2dde16785f045b665c6e613ad4","5256f1b8277c43012801540b6f845631b8bfecdff5586bf54a0a277c02a2bd9e","5d0cba8f7a3f206d3fca3a726f1e406e1cfbbbbea7dcee92db6ed796d8ee9131","6606e60d5f9c48cc58c92d97aa72c3d0e405945580d95951ea8a52a3a8a7ca17","4c2c4f53e8eedd970f8afa369d7371544fb6231bf95e659f8602e09abe74d5a5",{"version":"dc5f6951bbf5b544349cbdef895c08dee6929818abd27d7d53c38cf1209091b3","affectsGlobalScope":true},"64e2803203b14d7f104f570f2152fde13abb6edc17b2ddb33d81ad86cf43d494","2c8d9e3331aec52d9a6d4040352c00282c3abaf48053ed0944528a4845c9caa3","9b2a8f604e7c0482a9061755f00b287cc99bd8718dc82d8207dd74c599b6dc43","d0fc76a91c828fbe3f0be5d683273634b7b101068333ceed975a8a9ac464137b",{"version":"1a048ff164b8d9609f5de3139d4e37f6e8a82af82087ac414b9208f52ef8aac7","affectsGlobalScope":true},"3111079f3cb5f2b9c812ca3f46161562bce5bfb355e915f46ed46c41714dc1c3","64576aba4ff801004122056ccd049f0597aa471dcfd7670a6a0b877ee8dd97c0","b32b6b16cb0bda68199582ad6f22242d07ee75fac9b1f28a98cd838afc5eea45","4441ee4119824bfaebc49308559edd7545978f9cb41a40f115074e1031dde75f",{"version":"60693a88462d0e97900123b5bf7c73e146ce0cc94da46a61fe6775b430d2ff05","affectsGlobalScope":true},{"version":"588c69eda58b9202676ec7ca11a72c3762819b46a0ed72462c769846153c447c","affectsGlobalScope":true},"cc829932ffaf5c49092f878bec18af1fa5d8591b45a45e2b7f757f793cb3b4ed","47db10fdc4e76c4f4598cf7c91ba6bfde6cf6d8082c51860fe751643bf359739","05d7d95e24bc2897bf20ce041c3dc3cca814e07148a93999145b1a0ad491094c","d1080e49778c0b2ce656042ebfa43f89dffb96ac00f86a34762188a21857ffd4","0ce99c641ea20b0c0c09d093fc28f18f5ab31dc80033707a1ac3154399de2559","f0c33a0b325d3499cc9aded7d32886f998c9a27b465097c6cc136944d0aafdaa","44e42ed6ec9c4451ebe89524e80ac8564e9dd0988c56e6c58f393c810730595d","03c91e8833eef54dc44db99d7deb469b5e3cec82f23054b4286a2380e0e00996","1606ea615c0a5ea9f5c1376a33e34c0e1112e8dee31a5b3b8a74ce781893aa6f","9fef9de633d01cb7f01f68195626a890ededd25cf96a1e785617d08c8668230d","4455c78d226d061b1203c7614c6c6eb5f4f9db5f00d44ff47d0112de8766fbc4",{"version":"bf89ceb26132596b859cd4d129ce3f447134b444dec87966ba65cd7e8e9e0cb0","affectsGlobalScope":true},"4465a636f5f6e9665a90e30691862c9e0a3ac2edc0e66296704f10865e924f2a","9af781f03d44f5635ed7844be0ce370d9d595d4b4ec67cad88f0fac03255257e","f9fd4c3ef6de27fa0e256f4e75b61711c4be05a3399f7714621d3edc832e36b0","e49290b7a927995c0d7e6b2b9c8296284b68a9036d9966531de65185269258d7","a11d4ba43bf0825d7285d54dec6cb951685cd458a4de3c5c1800f7cbf7799009","874ca809b79276460011480a2829f4c8d4db29416dd411f71efbf8f497f0ac09","82e1723b20fa0b15a7da0d1a03fec88348f82f640f7a2f308d6c0fac780cfc7c","e0202c3e09775b86b902f21623e55896cea98750efbdf0691ca7473af06fe551","23a28f834a078986bbf58f4e3705956983ff81c3c2493f3db3e5f0e8a9507779","4febdf7f3ec92706c58e0b4e8159cd6de718284ef384260b07c9641c13fc70ce","ad7e61eca7f2f8bf47e72695f9f6663b75e41d87ef49abdb17c0cb843862f8aa","ecba2e44af95b0599c269a92628cec22e752868bce37396740deb51a5c547a26","46a9fb41a8f3bc7539eeebc15a6e04b9e55d7537a081615ad3614220d34c3e0f","a2666b43d889b4882ac6ede1c48128bac351886854e94f832b20d3730e5062c5","7335933d9f30dcfd2c4b6080a8b78e81912a7fcefb1dafccb67ca4cb4b3ac23d","a6bfe9de9adef749010c118104b071d14943802ff0614732b47ce4f1c3e383cd","4c3d0e10396646db4a1e917fb852077ee77ae62e512913bef9cccc2bb0f8bd0e","3b220849d58140dcc6718f5b52dcd29fdb79c45bc28f561cbd29eb1cac6cce13","0ee22fce41f7417a24c808d266e91b850629113c104713a35854393d55994beb","22d1b1d965baba05766613e2e6c753bb005d4386c448cafd72c309ba689e8c24",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"2a7d39ea70e483d3ebcde44031b6552940f295349bee8d486e8bdf6380162302","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","b35c484129671a62dbffdd0716d787923ef43f2f93b7e55528f94cef7e131d74","95b6c669e7ed7c5358c03f8aa24986640f6125ee81bb99e70e9155974f7fd253","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","f7e133b20ee2669b6c0e5d7f0cd510868c57cd64b283e68c7f598e30ce9d76d2","6ba73232c9d3267ca36ddb83e335d474d2c0e167481e3dec416c782894e11438","f7dd7280ee4f0420865e6423fe199aeac63d1d66203a8b631077cdc15501ef1f","ef62b4aa372f77458d84c26614b44129f929e263c81b5cd1034f5828a5530412","8610558ae88a43ad794c4ab1da4f0e8e174e0357c88f6cbb21f523e67414e9a9","0b0feb9837c561c0a67b61024328045bb16bac6e4b10f7b0b217d3b8b43b0b12","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","7adecb2c3238794c378d336a8182d4c3dd2c4fa6fa1785e2797a3db550edea62","dc12dc0e5aa06f4e1a7692149b78f89116af823b9e1f1e4eae140cd3e0e674e6","1bfc6565b90c8771615cd8cfcf9b36efc0275e5e83ac7d9181307e96eb495161","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","7f82ef88bdb67d9a850dd1c7cd2d690f33e0f0acd208e3c9eba086f3670d4f73","100db324c7664a9a2a4b76d7131fc69dfdf38d24542afc19825d05f401259fab","80b186d68c99a4cc9443cb3cab6eb9a2a136c65a9973ed403761961ca2cd94e6","00e95882237b1f291eb7ed34acf069003d2e6dc977c374f9798d7ad59b4aabbd","45a63e17814c570ea59407f231ef9c561510bd6edb36f17479b09b44619496c6","eb38f5d75ce5b2e143bf9492c8fc181fe7b96354c1661383acda37425b419edf","095b817a5042af7140cc5c6a59d84fe731156193191b4ec39a37d23e526cc653","1f08f4f96b58e7d21b4b64f1d807e4cf04012216a0173c773ac03d9445ecd9c4","8e7c94ac16984679b2f8ea7aeb6800f6ed2a310ff25d7b7523ffa5fac72d68b9","a81ca211f5df4e7943e76d2e76bc6883ea63b2a214ef05c46d83700ec70953fc","2f3ea3c432abd85e91a5a2a67fdba93f2b8408ba21a4dc19ef6c85ca64b0e23e","51655d3b9ed8affa0cdd097ebce4c28febf138c9b24213fde460363a1794db4e",{"version":"5f186a758a616c107c70e8918db4630d063bd782f22e6e0b17573b125765b40b","affectsGlobalScope":true}],"options":{"composite":true,"declarationMap":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":2,"module":1,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":5},"fileIdsList":[[107,109],[111,113,115],[108],[109,110,116,117,118],[112],[61],[63],[64],[65,73,74,81,90],[65,66,73,81],[67,100],[68,69,74,82],[69,90],[70,71,73,81],[71],[72,73],[73],[73,74,75,90,99],[74,75],[76,81,90,99],[73,74,76,77,81,90,93,99],[76,78,90,93,99],[61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,99,100,101,102,103,104,105,106],[73,79],[80,99],[71,73,81,90],[82],[83],[63,84],[85,95],[86],[87],[73,88],[88,89,100,102],[73,90],[91],[92],[81,93],[94],[81,95],[87,99],[100],[90,101],[102],[103],[73,75,90,99,102,104],[90,105],[50],[50,132],[46,47,48,49],[114],[129],[119,127,128],[120,123],[120,123,124,125],[122],[111,126],[121],[96,97],[51,52,53,54,55,57,58,59],[50,51,130,131,132,133],[50,57,130,131,132,133],[50,56],[50,60]],"referencedMap":[[110,1],[116,2],[109,3],[119,4],[112,3],[113,5],[61,6],[63,7],[64,8],[65,9],[66,10],[67,11],[68,12],[69,13],[70,14],[71,15],[72,16],[73,17],[74,18],[75,19],[76,20],[77,21],[78,22],[107,23],[79,24],[80,25],[81,26],[82,27],[83,28],[84,29],[85,30],[86,31],[87,32],[88,33],[89,34],[90,35],[91,36],[92,37],[93,38],[94,39],[95,40],[99,41],[100,42],[101,43],[102,44],[103,45],[104,46],[105,47],[131,48],[132,49],[50,50],[115,51],[130,52],[128,52],[129,53],[124,54],[126,55],[125,54],[123,56],[127,57],[122,58],[98,59],[60,60],[134,61],[51,48],[52,48],[53,48],[54,48],[55,48],[135,62],[57,63],[58,48],[59,48],[136,64],[137,64],[138,64]],"exportedModulesMap":[[110,1],[116,2],[109,3],[119,4],[112,3],[113,5],[61,6],[63,7],[64,8],[65,9],[66,10],[67,11],[68,12],[69,13],[70,14],[71,15],[72,16],[73,17],[74,18],[75,19],[76,20],[77,21],[78,22],[107,23],[79,24],[80,25],[81,26],[82,27],[83,28],[84,29],[85,30],[86,31],[87,32],[88,33],[89,34],[90,35],[91,36],[92,37],[93,38],[94,39],[95,40],[99,41],[100,42],[101,43],[102,44],[103,45],[104,46],[105,47],[131,48],[132,49],[50,50],[115,51],[130,52],[128,52],[129,53],[124,54],[126,55],[125,54],[123,56],[127,57],[122,58],[98,59],[60,60],[134,61],[51,48],[52,48],[53,48],[54,48],[55,48],[135,62],[57,63],[58,48],[59,48],[136,64],[137,64],[138,64]],"semanticDiagnosticsPerFile":[110,116,109,117,118,119,108,112,113,139,61,63,64,65,66,67,68,69,70,71,72,73,74,75,62,106,76,77,78,107,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,99,100,101,102,103,104,105,48,131,132,46,50,49,114,115,111,47,130,128,129,56,120,124,126,125,123,127,122,121,96,97,98,10,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,40,36,37,38,39,8,44,41,42,43,1,9,45,133,60,134,51,52,53,54,55,135,57,58,59,136,137,138]},"version":"4.5.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-async",
3
- "version": "2.28.2",
3
+ "version": "2.28.5-dev.4dea7f41",
4
4
  "description": "Async utils",
5
5
  "license": "MIT",
6
6
  "author": "DXOS.org",
@@ -10,6 +10,9 @@
10
10
  "dist",
11
11
  "src"
12
12
  ],
13
+ "dependencies": {
14
+ "immutability-helper": "^3.0.2"
15
+ },
13
16
  "devDependencies": {
14
17
  "@dxos/esbuild-plugins": "~2.28.4",
15
18
  "@dxos/eslint-plugin": "~1.0.27",
@@ -37,9 +40,6 @@
37
40
  "jsdom": true,
38
41
  "testingFramework": "mocha"
39
42
  },
40
- "dependencies": {
41
- "immutability-helper": "^3.0.2"
42
- },
43
43
  "scripts": {
44
44
  "book": "toolchain book",
45
45
  "build": "toolchain build",
@@ -48,5 +48,5 @@
48
48
  "lint": "toolchain lint",
49
49
  "test": "toolchain test"
50
50
  },
51
- "readme": "## React Async\n\n### Configuration\n\nAdd the following to `package.json`.\n\n```json\n \"toolchain\": {\n \"forceCloseTests\": true,\n \"jsdom\": true,\n \"testingFramework\": \"mocha\"\n }\n```\n\nThe `react-dom/test-utils` requires the `raf` (React animation frame) polyfill to run headless.\n\n```ts\nimport 'raf/polyfill';\nimport { act } from 'react-dom/test-utils';\n```\n\n\n### Next\n\nEvaluate the following:\n\n- https://www.npmjs.com/package/react-async-hook (popular)\n- https://www.npmjs.com/package/use-enhanced-state\n- https://www.npmjs.com/package/react-hooks-lib\n"
51
+ "readme": "## React Async\n\n### Configuration\n\nAdd the following to `package.json`.\n\n```json\n \"toolchain\": {\n \"forceCloseTests\": true,\n \"jsdom\": true,\n \"testingFramework\": \"mocha\"\n }\n```\n\nThe `react-dom/test-utils` requires the `raf` (React animation frame) polyfill to run headless.\n\n```ts\nimport 'raf/polyfill';\nimport { act } from 'react-dom/test-utils';\n```\n\n### Next\n\nEvaluate the following:\n\n- https://www.npmjs.com/package/react-async-hook (popular)\n- https://www.npmjs.com/package/use-enhanced-state\n- https://www.npmjs.com/package/react-hooks-lib\n"
52
52
  }
package/src/index.ts CHANGED
@@ -6,6 +6,7 @@ export * from './useAsyncEffect';
6
6
  export * from './useControlledState';
7
7
  export * from './useDynamicRef';
8
8
  export * from './useMounted';
9
+ export * from './useStateRef';
9
10
  export * from './useStateUpdater';
10
11
  export * from './useStateWithRef';
11
12
  export * from './useTimestamp';
@@ -9,7 +9,7 @@ import { Dispatch, SetStateAction, useEffect, useState } from 'react';
9
9
  * The optional callback is triggered only if the state is updated internally.
10
10
  *
11
11
  * ```tsx
12
- * const Component = ({ value: controlledValue, onChange }: { value: string, onChange: (value:string) => void }) => {
12
+ * const Component = ({ value: controlledValue, onChange }) => {
13
13
  * const [value, setValue] = useControlledState(controlledValue, onChange);
14
14
  * const handleUpdate = (value: string) => setValue(value);
15
15
  * }
@@ -0,0 +1,31 @@
1
+ //
2
+ // Copyright 2022 DXOS.org
3
+ //
4
+
5
+ import { Dispatch, RefObject, SetStateAction, useEffect, useRef, useState } from 'react';
6
+
7
+ /**
8
+ * Extension of useState to return an up-to-date reference.
9
+ * E.g., to use in callbacks where the state value is stale.
10
+ *
11
+ * ```tsx
12
+ * const [value, setValue, valueRef] = useStateRef<string>();
13
+ * const handleAction = () => {
14
+ * console.log(valueRef.current);
15
+ * }
16
+ * ```
17
+ *
18
+ * @param initialValue
19
+ */
20
+ // TODO(burdon): Replace with useCallback?
21
+ export const useStateRef = <V>(
22
+ initialValue?: V | (() => V)
23
+ ): [V | undefined, Dispatch<SetStateAction<V | undefined>>, RefObject<V | undefined>] => {
24
+ const [value, setValue] = useState<V | undefined>(initialValue);
25
+ const ref = useRef<V>();
26
+ useEffect(() => {
27
+ ref.current = value;
28
+ }, [initialValue, value]);
29
+
30
+ return [value, setValue, ref];
31
+ };
@@ -11,14 +11,17 @@ import waitForExpect from 'wait-for-expect';
11
11
 
12
12
  import { useStateUpdater } from './useStateUpdater';
13
13
 
14
- // Don't copy this.
14
+ // Expensive object to copy.
15
15
  const complex = {
16
-
16
+ data: Array.from({ length: 100 }).map((_, i) => ({
17
+ title: String(i)
18
+ }))
17
19
  };
18
20
 
19
21
  const Test = () => {
20
22
  const [value,, updateValue] = useStateUpdater({ complex, items: [] });
21
23
  useEffect(() => {
24
+ // https://github.com/kolodny/immutability-helper
22
25
  updateValue({
23
26
  items: {
24
27
  $push: [1, 2, 3]
@@ -8,8 +8,13 @@ import { useEffect, useState } from 'react';
8
8
  * Provides a timestamp that can be used to force re-rendering based on deps.
9
9
  *
10
10
  * ```tsx
11
- * const [, update] = useTimestamp();
12
- * const handleRefresh = () => update();
11
+ * const Test = () => {
12
+ * const [ts, update] = useTimestamp();
13
+ * const handleRefresh = () => update();
14
+ * return (
15
+ * <div>{ts}</div>
16
+ * );
17
+ * };
13
18
  * ```
14
19
  *
15
20
  * @param deps