@reactuses/core 6.0.3 → 6.0.4

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 CHANGED
@@ -3319,6 +3319,11 @@ const useClipboard = ()=>{
3319
3319
  setText(txt);
3320
3320
  yield window.navigator.clipboard.writeText(txt);
3321
3321
  }), []);
3322
+ React.useEffect(()=>{
3323
+ updateText();
3324
+ }, [
3325
+ updateText
3326
+ ]);
3322
3327
  return [
3323
3328
  text,
3324
3329
  copy
package/dist/index.mjs CHANGED
@@ -3311,6 +3311,11 @@ const useClipboard = ()=>{
3311
3311
  setText(txt);
3312
3312
  yield window.navigator.clipboard.writeText(txt);
3313
3313
  }), []);
3314
+ useEffect(()=>{
3315
+ updateText();
3316
+ }, [
3317
+ updateText
3318
+ ]);
3314
3319
  return [
3315
3320
  text,
3316
3321
  copy
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactuses/core",
3
- "version": "6.0.3",
3
+ "version": "6.0.4",
4
4
  "license": "Unlicense",
5
5
  "homepage": "https://www.reactuse.com/",
6
6
  "repository": {