0210faabea
On an editable page the dictation mic in the byline stayed grey/disabled after collab finished syncing, until an unrelated re-render (view↔edit toggle, navigation) happened. DictationGroup read the NON-reactive `editor.isEditable` field directly in render; `editor` comes from pageEditorAtom (a stable object reference), so `editor.setEditable(true)` after sync (#218 gate) mutates TipTap state without changing the atom reference — the byline never re-renders and disabled=true sticks. Read editable via `useEditorState` (the same reactive read the editor body already uses), so the mic re-enables when the body flips editable and disables again when it loses editable. The #218 pre-sync intent is preserved — just made reactive. Test flips isEditable false→true and asserts the mic goes disabled→enabled (fails against the pre-fix raw-field read). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
- Configure the top-level
parserOptionsproperty like this:
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
- Replace
plugin:@typescript-eslint/recommendedtoplugin:@typescript-eslint/recommended-type-checkedorplugin:@typescript-eslint/strict-type-checked - Optionally add
plugin:@typescript-eslint/stylistic-type-checked - Install eslint-plugin-react and add
plugin:react/recommended&plugin:react/jsx-runtimeto theextendslist