Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-remote-resource

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-remote-resource - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc