d36021a111
Move the inline ProseMirror comment-mark clear out of the Undo toast's onClick and into the reopen mutation's onSuccess branch. Clearing it eagerly flipped the collab mark to unresolved before the reopen result was known: on a non-404 failure the RQ cache rolls back to resolved but the doc kept an active highlight the panel treats as resolved, and a comment refetch can't heal a divergence that lives in the collab doc. Mirrors the 404 branch's editor-liveness guard/try-catch and the safe await-then-mark pattern in comment-list-item. The button-triggered reopen already sets the mark, so the onSuccess call is an idempotent no-op there. Tests: reopen failure (500) leaves the mark untouched; null editorRef on the success path degrades gracefully. 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