diff --git a/src/Updux.ts b/src/Updux.ts index 5a1d534..99be92a 100644 --- a/src/Updux.ts +++ b/src/Updux.ts @@ -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,