2.0.0 • Published 1 month ago

@ibrilliant/hooks v2.0.0

Weekly downloads
131
License
MIT
Repository
github
Last release
1 month ago

hooks

install

$ yarn add @ibrilliant/hooks
hooks简介
createProviderAndHooksprovider进行的包装
createSliceHook简化获取slice state的方式
DispatcherProvider简化派发action调用
makeSlice使用slice来封装useReducer
useMuiAnchorElControl管理material-uiAnchorEl
useMuiInputControl管理material-ui input value
useMuiTabsControl管理material-ui tabs value
useBehaviorSubjectControl管理rxjs BehaviorSubject
useSubject管理rxjs subject
useSubscribe自动订阅、取消 rxjs observable
useActionPending管理loading,避免出现较短时间的闪烁
useConstantreexport from use-constant
useLocationQueryparse location.search
useNumberInput数字输入框处理逻辑
useSelectorWithIsEqual增强useSelector

use-constant:https://github.com/andarist/use-constant