-
add
syncLocalStorageFromEvent
option to control localStorage sync strategy -
add
startLoadingWith
option to control initial loading state -
add
resetAll
,reset
now resets value with specific key -
remove unused
getFetchTime
&useFetchTime
, you could inject it in reducer
- remove
createCombinedRegion
,getProps
,useProps
, andgetValue
&useValue
with array of keys
-
deprecate
getProps
&useProps
-
deprecate
createCombinedRegion
-
deprecate
getValue
&useValue
with array of keys
- remove
map
andid
and surrounded apis.
-
createMappedRegion
-
fix compatible of
load
andset
-
implement and enable swr by default
-
remove all deprecated api
-
reimplement and remove
redux
-
add
createRegion
&createLocalStorageRegion
&createCombinedRegion
-
add
getValue
,getLoading
,getError
,getFetchTime
,useValue
,useLoading
,useError
,useFetchTime
-
deprecate
Region
in favor ofcreateCombinedRegion
-
deprecate several method of
CombinedRegion
-
remove
provide
&unstable_connect
-
Region
own its store instead of share it.
-
migrate to ts and export es5
-
setBy
/loadBy
-
reset
-
getProps
-
provide
(optional) -
deprecate
getProvider
-
rename
connect
tounstable_connect
& deprecateselector
in newconnect
-
make
getLoading
,getResults
,getFetchTimes
,getError
private -
memoized
useProps
-
Region
demandsname
to be string -
fix a bug try to build error boundary but failed
-
useProps
-
require
[email protected]
&react-redux@6
, in order to developuseProps
hook -
remove
setConfig
,silentConnect
(in config),reducerPath
(in config),entity
(in connect)
-
format
:(result, snapshot) => ...
to(result, snapshot, error) => ...
-
DefaultLoading
,DefaultError
,Error
-
connect
&connectWith
({ key }, ...) -
rename
mapResultToProps
=>private_selectorFactory
-
fix
loading
when several load is called, usingpendingMutex
-
new Region('name')
&new Region({ name })
-
error support
-
deprecate
reducerPath
,entity
-
rename to
region-core
andregion-shortcut
-
Region
-
getProvider
-
selector
-
remove
connect
-
set
-
Provider
-
setConfig(silentConnect)
and removesetConfig(actionType)
-
gh-pages
-
remove
willSetResult
,didSetResult
-
setConfig(strictLoading)
-
connectWith(key, Display, Loading)
-
deprecate
connect
-
remove
asyncLoad
,getReducer
-
setConfig(store)
is needed -
load
not surround withdispatch
anymore -
getLoading
,getResults
,getFetchTimes
: state is not needed -
connect
-
forceUpdate
: from'never' | 'need' | 'always'
totrue | false
-
deprecate
willSetResult
,didSetResult
-
remove
setReducerPath
-
setConfig(reducerPath, expiredTime, enableLog, actionType)
-
getReducer
-
willSetResult
,didSetResult
-
provide
snapshot
forformat
, and catch format error -
load
with promise -
deprecate
asyncLoad
,getReducer
-
load(params, forceUpdate, format)
-
asyncLoad
-
mapResultToProps
-
getLoading
,getResults
,getFetchTimes
-
reducer
-
setReducerPath