@cripty2001/utils 0.0.163 → 0.0.165

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.
@@ -388,10 +388,10 @@ function useAsyncInput(value, setValue, handler) {
388
388
  (0, react_1.useEffect)(() => {
389
389
  if (result === null)
390
390
  return;
391
- if (result._meta.ts <= meta.ts)
391
+ if (result._meta.ts <= value._meta.ts)
392
392
  return;
393
393
  setValue(result);
394
- }, [result, setValue]);
394
+ }, [result, value, setValue]);
395
395
  const returnedSetValue = (0, react_1.useCallback)((updater) => {
396
396
  const cloned = structuredClone(meta.config);
397
397
  const new_data = updater(cloned);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cripty2001/utils",
3
- "version": "0.0.163",
3
+ "version": "0.0.165",
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": {