From c97399a8eaa6edb80ca8746f6e1cc1d59efe8aeb Mon Sep 17 00:00:00 2001 From: steven Date: Sun, 28 Aug 2022 00:30:26 +0800 Subject: [PATCH] fix: update `isFetching` default value --- web/src/store/modules/memo.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/store/modules/memo.ts b/web/src/store/modules/memo.ts index 9ba275f9..aa089d03 100644 --- a/web/src/store/modules/memo.ts +++ b/web/src/store/modules/memo.ts @@ -11,7 +11,8 @@ const memoSlice = createSlice({ initialState: { memos: [], tags: [], - isFetching: false, + // isFetching flag should starts with true. + isFetching: true, } as State, reducers: { setMemos: (state, action: PayloadAction) => {