react-toolkits 0.8.14 → 0.8.16

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # react-toolkits
2
2
 
3
+ ## 0.8.16
4
+
5
+ ### Patch Changes
6
+
7
+ - 71192c8: feat: custom routes
8
+
9
+ ## 0.8.15
10
+
11
+ ### Patch Changes
12
+
13
+ - 12f2666: feat: export pages
14
+
3
15
  ## 0.8.14
4
16
 
5
17
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { I as O, w as W, i as h, k as x, s as z, m as w, n as V, U as R, o as U, b as G, r as n, e as K } from "./index-E5HZX0Fa.chunk.js";
1
+ import { I as O, w as W, e as h, f as x, s as z, m as w, g as V, U as R, h as U, d as G, r as n, c as K } from "./index-Muq4Hp6W.chunk.js";
2
2
  import L, { useRef as o, useCallback as N, useState as $ } from "react";
3
3
  const P = O ? (e) => {
4
4
  e();
@@ -28,8 +28,8 @@ const P = O ? (e) => {
28
28
  data: R,
29
29
  error: R,
30
30
  isMutating: !1
31
- }), b = g.current, v = N(
32
- async (D, T) => {
31
+ }), S = g.current, v = N(
32
+ async (T, k) => {
33
33
  const [y, I] = z(d.current);
34
34
  if (!m.current)
35
35
  throw new Error("Can’t trigger the mutation: missing fetcher.");
@@ -38,22 +38,22 @@ const P = O ? (e) => {
38
38
  const l = w(w({
39
39
  populateCache: !1,
40
40
  throwOnError: !0
41
- }, c.current), T), S = V();
42
- a.current = S, s({
41
+ }, c.current), k), b = V();
42
+ a.current = b, s({
43
43
  isMutating: !0
44
44
  });
45
45
  try {
46
46
  const u = await i(
47
47
  y,
48
48
  m.current(I, {
49
- arg: D
49
+ arg: T
50
50
  }),
51
51
  // We must throw the error here so we can catch and update the states.
52
52
  w(l, {
53
53
  throwOnError: !0
54
54
  })
55
55
  );
56
- if (a.current <= S) {
56
+ if (a.current <= b) {
57
57
  var M, C;
58
58
  P(() => s({
59
59
  data: u,
@@ -63,7 +63,7 @@ const P = O ? (e) => {
63
63
  }
64
64
  return u;
65
65
  } catch (u) {
66
- if (a.current <= S) {
66
+ if (a.current <= b) {
67
67
  var E, A;
68
68
  if (P(() => s({
69
69
  error: u,
@@ -75,7 +75,7 @@ const P = O ? (e) => {
75
75
  },
76
76
  // eslint-disable-next-line react-hooks/exhaustive-deps
77
77
  []
78
- ), k = N(() => {
78
+ ), D = N(() => {
79
79
  a.current = V(), s({
80
80
  data: R,
81
81
  error: R,
@@ -86,15 +86,15 @@ const P = O ? (e) => {
86
86
  d.current = e, m.current = t, c.current = r;
87
87
  }), {
88
88
  trigger: v,
89
- reset: k,
89
+ reset: D,
90
90
  get data() {
91
- return p.data = !0, b.data;
91
+ return p.data = !0, S.data;
92
92
  },
93
93
  get error() {
94
- return p.error = !0, b.error;
94
+ return p.error = !0, S.error;
95
95
  },
96
96
  get isMutating() {
97
- return p.isMutating = !0, b.isMutating;
97
+ return p.isMutating = !0, S.isMutating;
98
98
  }
99
99
  };
100
100
  }, f = W(h, q);
@@ -199,14 +199,14 @@ function re() {
199
199
  );
200
200
  }
201
201
  export {
202
- _ as a,
203
- X as b,
204
- Z as c,
205
- B as d,
206
- H as e,
207
- re as f,
208
- ee as g,
209
- J as h,
210
- te as i,
211
- Q as u
202
+ ee as a,
203
+ J as b,
204
+ te as c,
205
+ _ as d,
206
+ X as e,
207
+ Z as f,
208
+ Q as g,
209
+ B as h,
210
+ H as i,
211
+ re as u
212
212
  };