You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- made `useCodeMirror` easier to reuse, now accepting an object of options and manages the editor in a stateless approach which only guarantees that the `editorRef` is updated for any `useLayoutEffect`/useEffect` which is defined after the hook was called. it now manages extensions in a single compartment, keeping the editors state when extensions are reconfigured
- removed `effects` prop and system, instead directly modify extensions or use `editor` directly via `onViewLifecycle`, `onSetup` or from `useCodeMirror`.
- reworked `useExtension` to automatically add and reconfigure an extension, now can only be used together with `useCodeMirror`, must be called directly after it
- `CodeMirror` replaced prop `classNamesContent: string[]` with `classNameContent: string`
- removed `useEditorClasses` helper hook, now included in `CodeMirror`
- changed internal effects and state flow, for performance and reliability
- added `onSetup` prop to `CodeMirror`, reactively attach event listener without extra state overhead or needing to use the `useCodeMirror` hook
- added `Transaction.remote` annotation to the default `onExternalChange` handler
- added `isRemoteChange` util to check for the remote annotation
0 commit comments