1.0.1 • Published 2 months ago
@cooperbuckingham/one-pass-global-state v1.0.1
Simple Global State
Restrictive, typed, access to global state via hook and single key, for react
How to use
- Call
CbSimpleGlobalState.init(<initial global state>)
to get the singleton instance of CbSimpleGlobalState; - use the useGlobalState hooks on the singleton to access global state
- use the useLocalState hooks to handle local state
Note on Restrictions
- To keep things simple and strongly typed, to focus on developer ease of use, there are only 7 tiers of nested typed global state.
1.0.1
2 months ago
0.1.25-alpha.0
2 years ago
0.1.24-alpha.0
3 years ago
0.1.21-alpha.0
3 years ago
0.1.22-alpha.0
3 years ago
0.1.23-alpha.0
3 years ago
0.1.19-alpha.0
3 years ago
0.1.16-alpha.0
3 years ago
0.1.15-alpha.0
3 years ago
0.1.14-alpha.0
3 years ago
0.1.11-alpha.0
3 years ago
0.1.13-alpha.0
3 years ago
0.1.12-alpha.0
3 years ago
0.1.18-alpha.0
3 years ago
0.1.17-alpha.0
3 years ago
0.1.10-alpha.0
3 years ago
0.1.9-alpha.0
3 years ago
0.1.8-alpha.0
3 years ago
0.1.7-alpha.0
3 years ago
0.1.5-alpha.0
3 years ago
0.1.4-alpha.0
3 years ago
0.1.3-alpha.0
3 years ago