atom-state
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -1,3 +0,2 @@ | ||
declare type SetAtomValueFunc = (newValue: ((currentValue: any) => any) | any) => void; | ||
export declare type SetAtomValueFunc = (newValue: ((currentValue: any) => any) | any) => void; | ||
export default function useAtomState(atomKey: any): [any, SetAtomValueFunc]; | ||
export {}; |
@@ -0,1 +1,11 @@ | ||
#### 0.0.8 (2020-06-07) | ||
##### Continuous Integration | ||
* publish npm on release ([a38c288a](https://github.com/JimLiu/atom-state/commit/a38c288a013e76471b673ee2b60c4a7edbd8d157)) | ||
##### New Features | ||
* Add new hooks useAtomValue and useSetAtomState ([12f1adba](https://github.com/JimLiu/atom-state/commit/12f1adba873c6d25ffc1080b2c6cbe2d23a2f495)) | ||
#### 0.0.7 (2020-06-07) | ||
@@ -7,11 +17,11 @@ | ||
* add release scripts ([68a05380](https://github.com/JimLiu/atom-state/commit/68a053803ea92285c5f1025d4a33347a3179f8b0)) | ||
- add release scripts ([68a05380](https://github.com/JimLiu/atom-state/commit/68a053803ea92285c5f1025d4a33347a3179f8b0)) | ||
##### Documentation Changes | ||
* Update changelog ([f750e32f](https://github.com/JimLiu/atom-state/commit/f750e32f84d58b2f5f92d85e62c036b89c7a0b5e)) | ||
- Update changelog ([f750e32f](https://github.com/JimLiu/atom-state/commit/f750e32f84d58b2f5f92d85e62c036b89c7a0b5e)) | ||
##### New Features | ||
* Support Async Atom ([83cf3fbf](https://github.com/JimLiu/atom-state/commit/83cf3fbf6d5e9fb78a0dda5f5cc22ea612a886b2)) | ||
- Support Async Atom ([83cf3fbf](https://github.com/JimLiu/atom-state/commit/83cf3fbf6d5e9fb78a0dda5f5cc22ea612a886b2)) | ||
@@ -18,0 +28,0 @@ #### 0.0.5 (2020-06-06) |
{ | ||
"name": "atom-state", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "A state management library for React", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
import { useState, useEffect, useCallback } from 'react' | ||
import useStore from './useStore' | ||
type SetAtomValueFunc = (newValue: ((currentValue: any) => any) | any) => void | ||
export type SetAtomValueFunc = ( | ||
newValue: ((currentValue: any) => any) | any | ||
) => void | ||
@@ -6,0 +8,0 @@ export default function useAtomState (atomKey: any): [any, SetAtomValueFunc] { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
103550
52
1745