createStore initial state
This commit is contained in:
parent
a04ebfcdfe
commit
2e78e27bf6
@ -198,10 +198,10 @@ export default class Updux<
|
|||||||
|
|
||||||
createStore(
|
createStore(
|
||||||
options: Partial<{
|
options: Partial<{
|
||||||
initialState: T_LocalState;
|
preloadedState: T_LocalState;
|
||||||
}> = {},
|
}> = {},
|
||||||
) {
|
) {
|
||||||
const preloadedState: any = options.initialState ?? this.initialState;
|
const preloadedState: any = options.preloadedState;
|
||||||
|
|
||||||
const effects = buildEffectsMiddleware(
|
const effects = buildEffectsMiddleware(
|
||||||
this.effects,
|
this.effects,
|
||||||
|
Loading…
Reference in New Issue
Block a user