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

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.1 to 0.3.2

8

build/RecoilNexus.d.ts

@@ -1,5 +0,5 @@

import { RecoilState } from 'recoil';
import { RecoilValue, RecoilState } from 'recoil';
export default function RecoilNexus(): null;
export declare function getRecoil<T>(atom: RecoilState<T>): T;
export declare function getRecoilPromise<T>(atom: RecoilState<T>): Promise<T>;
export declare function setRecoil<T>(atom: RecoilState<T>, value: T): void;
export declare function getRecoil<T>(atom: RecoilValue<T>): T;
export declare function getRecoilPromise<T>(atom: RecoilValue<T>): Promise<T>;
export declare function setRecoil<T>(atom: RecoilState<T>, valOrUpdater: T | ((currVal: T) => T)): void;

@@ -28,5 +28,5 @@ import { useRecoilCallback } from 'recoil';

}
export function setRecoil(atom, value) {
nexus.set(atom, value);
export function setRecoil(atom, valOrUpdater) {
nexus.set(atom, valOrUpdater);
}
//# sourceMappingURL=RecoilNexus.js.map
{
"name": "recoil-nexus",
"version": "0.3.1",
"version": "0.3.2",
"description": "A small Typescript package to access your Recoil atoms outside of React components.",

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

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