chem-rx 0.0.22 → 0.0.23

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.cjs.js CHANGED
@@ -321,7 +321,7 @@ function useSignal(signal, callback, id) {
321
321
  subscription.unsubscribe();
322
322
  }
323
323
  };
324
- }, [signal]);
324
+ }, [signal, callback, id]);
325
325
  }
326
326
 
327
327
  function useSelectAtom(atom, key) {
@@ -319,7 +319,7 @@ var chemicalRx = (function (exports, rxjs, react) {
319
319
  subscription.unsubscribe();
320
320
  }
321
321
  };
322
- }, [signal]);
322
+ }, [signal, callback, id]);
323
323
  }
324
324
 
325
325
  function useSelectAtom(atom, key) {
package/dist/index.js CHANGED
@@ -239,7 +239,7 @@ function useSignal(signal, callback, id) {
239
239
  subscription.unsubscribe();
240
240
  }
241
241
  };
242
- }, [signal]);
242
+ }, [signal, callback, id]);
243
243
  }
244
244
 
245
245
  function useSelectAtom(atom, key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chem-rx",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "react state primitives powered by rx.js",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/useSignal.ts CHANGED
@@ -20,5 +20,5 @@ export function useSignal<T>(
20
20
  subscription.unsubscribe();
21
21
  }
22
22
  };
23
- }, [signal]);
23
+ }, [signal, callback, id]);
24
24
  }