persist unsubmitted prompts

main
Cogent Apps 2023-03-17 03:03:11 +00:00
parent 210cca9a44
commit 13eae3da2e
1 changed files with 6 additions and 1 deletions

View File

@ -20,6 +20,11 @@ const persistSidebarConfig = {
storage,
}
const persistMessageConfig = {
key: 'message',
storage,
}
const store = configureStore({
reducer: {
// auth: authReducer,
@ -27,7 +32,7 @@ const store = configureStore({
settingsUI: settingsUIReducer,
voices: persistReducer(persistConfig, voiceReducer),
parameters: persistReducer(persistConfig, parametersReducer),
message: messageReducer,
message: persistReducer(persistMessageConfig, messageReducer),
ui: uiReducer,
sidebar: persistReducer(persistSidebarConfig, sidebarReducer),
},