@cripty2001/utils 0.0.250 → 0.0.251
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/react-whispr.js +2 -1
- package/package.json +1 -1
package/dist/react-whispr.js
CHANGED
|
@@ -216,8 +216,9 @@ function useAsyncPeriodic(data, interval, f) {
|
|
|
216
216
|
refresh
|
|
217
217
|
};
|
|
218
218
|
}, [data, timer, refresh]);
|
|
219
|
+
const dispatcher = useSafeRef(() => useAsync((i, p, s) => f(i.data, p, s), bundle));
|
|
219
220
|
return [
|
|
220
|
-
|
|
221
|
+
dispatcher,
|
|
221
222
|
() => {
|
|
222
223
|
setRefresh(Math.random());
|
|
223
224
|
}
|
package/package.json
CHANGED