Skip to content

Commit e476365

Browse files
authored
fix: use primitive boolean type in useSharedEditingState hook (#682)
1 parent dadecdb commit e476365

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/react-utils/useSharedEditingState.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type {EditorView} from '#pm/view';
66
import type {SharedStateKey} from 'src/extensions/behavior/SharedState';
77

88
export function useSharedEditingState(view: EditorView, key: SharedStateKey<{editing: boolean}>) {
9-
const [value, setValue] = useState<Boolean>(false);
9+
const [value, setValue] = useState<boolean>(false);
1010
const valueRef = useLatest(value);
1111

1212
useLayoutEffect(() => {

0 commit comments

Comments
 (0)