This repository has been archived by the owner on Mar 26, 2022. It is now read-only.
Releases: kqito/use-global-context
Releases · kqito/use-global-context
v0.8.0
v0.7.5
v0.7.4
Overview
PR: #44
Core changes
- Change the type of initialState from
any
toRecord<string, any>
New API
- Add
mergeInitialState
API- This API is useful for inheriting the value of the store from the SSR in the browser.
Document
- Add each API's description and usages.
- Add about
mergeInitialState
- Add about
getStore
- Add about
equalityFunction
- Add about
v0.7.2
v0.7.3
v0.7.0
Overview (core changes is included)
- Add
createGlobalContext
API - Remove
createUseStateContext
API - Remove
createUseReducerContext
API
API
createGlobalContext
createGlobalContext
is same usage with createUseReducerContext
and createUseStateContext
.
Since createUseReducer uses useReducer internally, there are some unnecessary renders that are unavoidable.
This has been fixed and renamed to createGlobalContext API.