Explorar el Código

add useIsConflict

Yuken Tezuka hace 3 años
padre
commit
0ecd342f17
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      packages/app/src/stores/editor.tsx

+ 4 - 0
packages/app/src/stores/editor.tsx

@@ -117,3 +117,7 @@ export const usePageTagsForEditors = (pageId: Nullable<string>): SWRResponse<str
 export const useIsEnabledUnsavedWarning = (): SWRResponse<boolean, Error> => {
   return useStaticSWR<boolean, Error>('isEnabledUnsavedWarning', undefined, { fallbackData: false });
 };
+
+export const useIsConflict = (): SWRResponse<boolean, Error> => {
+  return useStaticSWR<boolean, Error>('isConflict', undefined, { fallbackData: false });
+};