prostgles-client 4.0.112 → 4.0.113
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/dist/index.js +1 -1
- package/dist/index.no-sync.js +1 -1
- package/dist/react-hooks.js +1 -1
- package/lib/react-hooks.ts +1 -1
- package/package.json +1 -1
- package/tests/package-lock.json +1 -1
package/dist/react-hooks.js
CHANGED
|
@@ -87,7 +87,6 @@ const useAsyncEffectQueue = (effect, deps) => {
|
|
|
87
87
|
history: []
|
|
88
88
|
});
|
|
89
89
|
queue.current.latestEffect = latestEffect;
|
|
90
|
-
queue.current.history.push({ effect, deps });
|
|
91
90
|
const runAsyncEffect = async (queue) => {
|
|
92
91
|
var _a, _b, _c;
|
|
93
92
|
if (queue.current.latestEffect &&
|
|
@@ -121,6 +120,7 @@ const useAsyncEffectQueue = (effect, deps) => {
|
|
|
121
120
|
runAsyncEffect(queue);
|
|
122
121
|
};
|
|
123
122
|
(0, exports.useEffectDeep)(() => {
|
|
123
|
+
queue.current.history.push({ effect, deps });
|
|
124
124
|
runAsyncEffect(queue);
|
|
125
125
|
return () => {
|
|
126
126
|
var _a, _b;
|
package/lib/react-hooks.ts
CHANGED
|
@@ -107,7 +107,6 @@ export const useAsyncEffectQueue = (effect: () => Promise<void | (() => void)>,
|
|
|
107
107
|
history: []
|
|
108
108
|
});
|
|
109
109
|
queue.current.latestEffect = latestEffect;
|
|
110
|
-
queue.current.history.push({ effect, deps });
|
|
111
110
|
|
|
112
111
|
const runAsyncEffect = async (queue: React.MutableRefObject<AsyncEffectQueue>) => {
|
|
113
112
|
if(
|
|
@@ -142,6 +141,7 @@ export const useAsyncEffectQueue = (effect: () => Promise<void | (() => void)>,
|
|
|
142
141
|
}
|
|
143
142
|
|
|
144
143
|
useEffectDeep(() => {
|
|
144
|
+
queue.current.history.push({ effect, deps });
|
|
145
145
|
runAsyncEffect(queue);
|
|
146
146
|
return () => {
|
|
147
147
|
if(queue.current.activeEffect?.effect === effect){
|
package/package.json
CHANGED