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