aboutsummaryrefslogtreecommitdiff
path: root/src/store.ts
diff options
context:
space:
mode:
authorMax Nanis2025-06-03 20:06:44 +0700
committerMax Nanis2025-06-03 20:06:44 +0700
commit62456f41288eb0f03c5092d36610d566f275c8b5 (patch)
tree20b0170545f6b6c1ae1af233aca795d1d4aac2ef /src/store.ts
parentbf027779eb4c839420406e3547f22f5665ec08ab (diff)
downloadpanel-ui-62456f41288eb0f03c5092d36610d566f275c8b5.tar.gz
panel-ui-62456f41288eb0f03c5092d36610d566f275c8b5.zip
selectQuestionById, useMemo selector (MultiChoice.choices makes a lot of lookup). Setting up the Questions view to do Pagination to tab through available questions and view one at a time
Diffstat (limited to 'src/store.ts')
-rw-r--r--src/store.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/store.ts b/src/store.ts
index 4bd54ca..4e56b39 100644
--- a/src/store.ts
+++ b/src/store.ts
@@ -3,12 +3,20 @@ import {configureStore} from '@reduxjs/toolkit'
import bucketReducers from "@/models/bucketSlice.ts"
import questionReducers from "@/models/questionSlice.ts"
import appReducers from "@/models/appSlice.ts"
+import answerReducers from "@/models/answerSlice.ts"
export const store = configureStore({
reducer: {
app: appReducers,
+
+ // - Read Only
+ // -- These act as API cache stores to allow background loading
buckets: bucketReducers,
- questions: questionReducers
+ questions: questionReducers,
+
+ // - Read Write
+ // -- This stores user engagement (eg: answering any questions)
+ answers: answerReducers
}
})