react-remote-resource
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "react-remote-resource", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Intuitive remote data management in React", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs.js", |
@@ -150,8 +150,10 @@ import { useState, useEffect, useCallback, useRef, useContext } from "react"; | ||
}, [data]), | ||
remoteSave: useCallback(newData => { | ||
saveTasks.run(entryKey, () => save(newData)); | ||
}, []), | ||
remoteDelete: useCallback(() => { | ||
deleteTasks.run(entryKey, () => destroy(data)); | ||
}, [data]), | ||
remoteSave: useCallback( | ||
newData => saveTasks.run(entryKey, () => save(newData)), | ||
[] | ||
), | ||
remoteDelete: useCallback( | ||
() => deleteTasks.run(entryKey, () => destroy(data)), | ||
[data] | ||
), | ||
subscribe: useCallback(() => { | ||
@@ -158,0 +160,0 @@ // we only want one subscription running for each entry at a time |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
245924
695
0