@yamada-ui/utils 0.0.0-dev-20230714125059 → 0.0.0-dev-20230716162752

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.
@@ -131,9 +131,8 @@ var useAsyncFunc = (func, deps = [], initialState = { loading: false }) => {
131
131
  const [state, setState] = React.useState(initialState);
132
132
  const callback = React.useCallback((...args) => {
133
133
  const callId = ++lastCallId.current;
134
- if (!state.loading) {
134
+ if (!state.loading)
135
135
  setState((prevState) => ({ ...prevState, loading: true }));
136
- }
137
136
  return func(...args).then(
138
137
  (value) => {
139
138
  if (isMounted.current && callId === lastCallId.current)
package/dist/color.mjs CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  tintColor,
11
11
  toneColor,
12
12
  transparentizeColor
13
- } from "./chunk-VPOQGCMS.mjs";
13
+ } from "./chunk-UUOSA3BW.mjs";
14
14
  import "./chunk-SLJ4M7XC.mjs";
15
15
  import "./chunk-VYMGBE25.mjs";
16
16
  import "./chunk-BZAW2D6U.mjs";
package/dist/function.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  handlerAll,
4
4
  noop,
5
5
  runIfFunc
6
- } from "./chunk-VPOQGCMS.mjs";
6
+ } from "./chunk-UUOSA3BW.mjs";
7
7
  import "./chunk-SLJ4M7XC.mjs";
8
8
  import "./chunk-VYMGBE25.mjs";
9
9
  import "./chunk-BZAW2D6U.mjs";
package/dist/index.js CHANGED
@@ -408,9 +408,8 @@ var useAsyncFunc = (func, deps = [], initialState = { loading: false }) => {
408
408
  const [state, setState] = React.useState(initialState);
409
409
  const callback = React.useCallback((...args) => {
410
410
  const callId = ++lastCallId.current;
411
- if (!state.loading) {
411
+ if (!state.loading)
412
412
  setState((prevState) => ({ ...prevState, loading: true }));
413
- }
414
413
  return func(...args).then(
415
414
  (value) => {
416
415
  if (isMounted.current && callId === lastCallId.current)
package/dist/index.mjs CHANGED
@@ -48,7 +48,7 @@ import {
48
48
  useSafeLayoutEffect,
49
49
  useUnmountEffect,
50
50
  useUpdateEffect
51
- } from "./chunk-VPOQGCMS.mjs";
51
+ } from "./chunk-UUOSA3BW.mjs";
52
52
  import "./chunk-SLJ4M7XC.mjs";
53
53
  import {
54
54
  clampNumber,
package/dist/object.mjs CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  pickObject,
14
14
  replaceObject,
15
15
  splitObject
16
- } from "./chunk-VPOQGCMS.mjs";
16
+ } from "./chunk-UUOSA3BW.mjs";
17
17
  import "./chunk-SLJ4M7XC.mjs";
18
18
  import "./chunk-VYMGBE25.mjs";
19
19
  import "./chunk-BZAW2D6U.mjs";
package/dist/react.js CHANGED
@@ -170,9 +170,8 @@ var useAsyncFunc = (func, deps = [], initialState = { loading: false }) => {
170
170
  const [state, setState] = React.useState(initialState);
171
171
  const callback = React.useCallback((...args) => {
172
172
  const callId = ++lastCallId.current;
173
- if (!state.loading) {
173
+ if (!state.loading)
174
174
  setState((prevState) => ({ ...prevState, loading: true }));
175
- }
176
175
  return func(...args).then(
177
176
  (value) => {
178
177
  if (isMounted.current && callId === lastCallId.current)
package/dist/react.mjs CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  useSafeLayoutEffect,
20
20
  useUnmountEffect,
21
21
  useUpdateEffect
22
- } from "./chunk-VPOQGCMS.mjs";
22
+ } from "./chunk-UUOSA3BW.mjs";
23
23
  import "./chunk-SLJ4M7XC.mjs";
24
24
  import "./chunk-VYMGBE25.mjs";
25
25
  import "./chunk-BZAW2D6U.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/utils",
3
- "version": "0.0.0-dev-20230714125059",
3
+ "version": "0.0.0-dev-20230716162752",
4
4
  "description": "Yamada UI utils",
5
5
  "keywords": [
6
6
  "utils",