mirror of
https://github.com/usememos/memos.git
synced 2025-10-12 15:26:07 +08:00
fix: update isFetching
default value
This commit is contained in:
parent
75d622f4a2
commit
c97399a8ea
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,8 @@ const memoSlice = createSlice({
|
||||||
initialState: {
|
initialState: {
|
||||||
memos: [],
|
memos: [],
|
||||||
tags: [],
|
tags: [],
|
||||||
isFetching: false,
|
// isFetching flag should starts with true.
|
||||||
|
isFetching: true,
|
||||||
} as State,
|
} as State,
|
||||||
reducers: {
|
reducers: {
|
||||||
setMemos: (state, action: PayloadAction<Memo[]>) => {
|
setMemos: (state, action: PayloadAction<Memo[]>) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue