UNPKG
@raulpesilva/re-state
Version:
beta (1.2.28-beta.0)
latest (1.2.32)
next (2.0.2-beta.1)
2.0.2-beta.1
1.2.32
1.2.31
1.2.30
1.2.29
1.2.28
1.2.28-beta.0
1.1.24
1.1.23
1.1.22
1.1.21
1.1.20
1.1.19
1.1.18
1.1.17
1.1.16
1.1.16-beta.10
1.1.16-beta.9
1.1.16-beta.8
1.1.16-beta.6
1.1.16-beta.5
1.1.16-beta.4
1.1.16-beta.3
1.1.16-beta.2
1.1.16-beta.1
1.1.16-beta.0
1.1.14
1.1.13
1.1.12
1.1.11
1.1.10
1.1.9
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
easy way to create a shared state to the entire application
restate.vercel.app
raulpesilva/re-state
@raulpesilva/re-state
/
types
/
react
/
useReStateSelector.d.ts
4 lines
(3 loc)
•
196 B
TypeScript
View Raw
1
2
3
4
import
{ shallowEqual }
from
'./utils'
;
import
type
{
Selector
}
from
'./types'
;
export
declare
function
useReStateSelector<T, S = T>(
selector
:
Selector
<T, S>,
isEquals
?:
typeof
shallowEqual): S;