react-state-toolkit
v0.0.26
Published
React global store based exclusively on React build-in hooks useEffect, useMemo, useRef and useState.
Downloads
4
Readme
React global store based exclusively on React build-in hooks useEffect, useMemo, useRef and useState. General structure inspired by @reduxjs/toolkit.
yarn add react-state-toolkit
All store elements actions/selectors/slices must be created following creation order/rules:
Only import actions/selectors using standard esm import to:
Use store importer importAction/importSelector sudo-import functions to:
Actions created with createAction and createAsyncAction will rethrow the error back to the caller! (After processing REJECTED action handler if such registered for async acton) And can be handle as shown: