From 2e78e27bf6c9970e1e4ba7f827a8f1891bd601e9 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Thu, 4 May 2023 13:16:49 -0400 Subject: [PATCH] createStore initial state --- src/Updux.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,