@reactuses/core 5.0.10 → 5.0.11

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
@@ -2217,11 +2217,11 @@ const createOnceEffect = (hook)=>(effect, deps)=>{
2217
2217
  const shouldStart = !record.has(effect);
2218
2218
  if (shouldStart) {
2219
2219
  record.add(effect);
2220
- effect();
2220
+ return effect();
2221
2221
  }
2222
2222
  };
2223
2223
  hook(()=>{
2224
- onceWrapper();
2224
+ return onceWrapper();
2225
2225
  }, deps);
2226
2226
  };
2227
2227
 
package/dist/index.mjs CHANGED
@@ -2210,11 +2210,11 @@ const createOnceEffect = (hook)=>(effect, deps)=>{
2210
2210
  const shouldStart = !record.has(effect);
2211
2211
  if (shouldStart) {
2212
2212
  record.add(effect);
2213
- effect();
2213
+ return effect();
2214
2214
  }
2215
2215
  };
2216
2216
  hook(()=>{
2217
- onceWrapper();
2217
+ return onceWrapper();
2218
2218
  }, deps);
2219
2219
  };
2220
2220
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactuses/core",
3
- "version": "5.0.10",
3
+ "version": "5.0.11",
4
4
  "license": "Unlicense",
5
5
  "homepage": "https://www.reactuse.com/",
6
6
  "repository": {