web / useEditorState
Function: useEditorState() ​
useEditorState():
UseEditorStateReturn
Defined in: composables/useEditorState/useEditorState.ts:15
Returns ​
UseEditorStateReturn - Editor state properties and feature flags
Description ​
Composable for managing editor state conditions Centralizes all $isPreview logic into semantic, well-named computed properties
Example ​
ts
const { isEditMode, shouldUseFakeData } = useEditorState();
if (shouldUseFakeData.value) {
// Use fake data for editor
}