@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.
@@ -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
- useAsync((i, p, s) => f(i.data, p, s), bundle),
221
+ dispatcher,
221
222
  () => {
222
223
  setRefresh(Math.random());
223
224
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cripty2001/utils",
3
- "version": "0.0.250",
3
+ "version": "0.0.251",
4
4
  "description": "Internal Set of utils. If you need them use them, otherwise go to the next package ;)",
5
5
  "homepage": "https://github.com/cripty2001/utils#readme",
6
6
  "bugs": {