Socket
Socket
Sign inDemoInstall

recoil-nexus

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

recoil-nexus - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

1

build/RecoilNexus.d.ts

@@ -6,1 +6,2 @@ import { RecoilValue, RecoilState } from 'recoil';

export declare function setRecoil<T>(atom: RecoilState<T>, valOrUpdater: T | ((currVal: T) => T)): void;
export declare function resetRecoil(atom: RecoilState<any>): void;

@@ -20,2 +20,6 @@ import { useRecoilCallback } from 'recoil';

}, []);
nexus.reset = useRecoilCallback(function (_a) {
var reset = _a.reset;
return reset;
}, []);
return null;

@@ -32,2 +36,5 @@ }

}
export function resetRecoil(atom) {
nexus.reset(atom);
}
//# sourceMappingURL=RecoilNexus.js.map

2

package.json
{
"name": "recoil-nexus",
"version": "0.3.4",
"version": "0.3.5",
"description": "A small Typescript package to access your Recoil atoms outside of React components.",

@@ -5,0 +5,0 @@ "main": "build/RecoilNexus.js",

@@ -52,2 +52,3 @@ # R E C O I L - N E X U S

| `setRecoil` | setter function, pass value to be set as second parameter |
| `resetRecoil` | pass atom as parameter to reset to default value |

@@ -54,0 +55,0 @@ ```tsx

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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