From 62456f41288eb0f03c5092d36610d566f275c8b5 Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Tue, 3 Jun 2025 20:06:44 +0700 Subject: 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 --- src/store.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/store.ts') 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 } }) -- cgit v1.2.3