|
@@ -27,7 +27,10 @@ export const useEditorSettings = (): SWRResponseWithUtils<EditorSettingsOperatio
|
|
|
const swrResult = useSWRImmutable<IEditorSettings>(
|
|
const swrResult = useSWRImmutable<IEditorSettings>(
|
|
|
isGuestUser ? null : ['/personal-setting/editor-settings', currentUser?.username],
|
|
isGuestUser ? null : ['/personal-setting/editor-settings', currentUser?.username],
|
|
|
endpoint => apiv3Get(endpoint).then(result => result.data),
|
|
endpoint => apiv3Get(endpoint).then(result => result.data),
|
|
|
- { use: [localStorageMiddleware] }, // store to localStorage for initialization fastly
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ use: [localStorageMiddleware], // store to localStorage for initialization fastly
|
|
|
|
|
+ fallbackData: undefined,
|
|
|
|
|
+ },
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
return withUtils<EditorSettingsOperation, IEditorSettings, Error>(swrResult, {
|
|
return withUtils<EditorSettingsOperation, IEditorSettings, Error>(swrResult, {
|