Efficient and simple to use global state management for React, implemented with hooks, and spiced by useful data management functions (async retreival, caching, etc.)
OTHER License
Published by birdofpreyru about 4 years ago
useState(..)
) this way.Published by birdofpreyru over 4 years ago
Published by birdofpreyru over 4 years ago
Reverts the Babel config change introduced in v0.2.2
.
Published by birdofpreyru over 4 years ago
Published by birdofpreyru over 4 years ago
A better version of v0.2.0 update.
Published by birdofpreyru over 4 years ago
Published by birdofpreyru over 4 years ago
Rebuilds the bundle with browser-safe Babel target config.
Published by birdofpreyru over 4 years ago
deps
option to useAsyncData(..)
hook.useAsyncCollection(..)
hook.Published by birdofpreyru over 4 years ago
Published by birdofpreyru over 4 years ago
Published by birdofpreyru over 4 years ago
[#6] Fixes useAsyncData(..)
hook to work fine with very large and infinite maxage
, refreshAge
, and garbageCollectAge
option values.
[#8] BREAKING: Updates useGlobalState(..)
hook to comply with the following features of React's useState(..)
hook:
As the result, when functions are passed into useGlobalState(..)
as the initial or new state, the hook behaves correctly, and the same way as the useState(..)
does for the local state.
Published by birdofpreyru almost 5 years ago
Fixes an bug in useGlobalState()
Published by birdofpreyru almost 5 years ago
Published by birdofpreyru almost 5 years ago
stateProxy
property of <GlobalStateProvider>
now also accepts a GlobalState
instance to use (otherwise, if the value is truthy, it attempts to get the state from the parent provider).Published by birdofpreyru almost 5 years ago
Published by birdofpreyru almost 5 years ago
Adds stateProxy
feature to <GlobalStateProvider>
.
Published by birdofpreyru almost 5 years ago
Closes #3
Published by birdofpreyru almost 5 years ago
Published by birdofpreyru almost 5 years ago
In the previous releases the build directory was ignored by NPM. This release fixes it.
Published by birdofpreyru almost 5 years ago
Covers codebase with automated tests, and fixes a few bugs.