mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: initially authenticated and serializable fix
This commit is contained in:
parent
075bf8f2fc
commit
7839ad26c4
@ -16,7 +16,7 @@ const initialState: ICurrentUser | null = {
|
|||||||
displayName: 'Me 😃',
|
displayName: 'Me 😃',
|
||||||
email: `${nanoid(4)}@gmail.com`,
|
email: `${nanoid(4)}@gmail.com`,
|
||||||
token: nanoid(8),
|
token: nanoid(8),
|
||||||
isAuthenticated: false,
|
isAuthenticated: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
export const currentUserSlice = createSlice({
|
export const currentUserSlice = createSlice({
|
||||||
|
@ -33,7 +33,7 @@ const store = configureStore({
|
|||||||
[workspaceSlice.name]: workspaceSlice.reducer,
|
[workspaceSlice.name]: workspaceSlice.reducer,
|
||||||
[errorSlice.name]: errorSlice.reducer,
|
[errorSlice.name]: errorSlice.reducer,
|
||||||
},
|
},
|
||||||
middleware: (gDM) => gDM().prepend(listenerMiddlewareInstance.middleware),
|
middleware: (gDM) => gDM({ serializableCheck: false }).prepend(listenerMiddlewareInstance.middleware),
|
||||||
});
|
});
|
||||||
|
|
||||||
export { store };
|
export { store };
|
||||||
|
Loading…
Reference in New Issue
Block a user