Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1020 Bytes

dev-notes.md

File metadata and controls

28 lines (21 loc) · 1020 Bytes
  • No abbreviation support, because prettier will replace "*" with "_" which will break abbreviation.

Todo

  • Write Playwright tests
  • Make an app for ebook authoring
  • Create a VS Code extension
  • Create a Chrome extension for GitHub markdown rendering
  • Create a browser extension for email authoring
  • refactor store data structure
  • remove manate from dep
  • remove as many deps as possible
  • add more toolbal items, but by default do not show so many

useMemo vs useRef

You cannot read/write useRef object during rendering. So do not useRef and pass it to children components. Since you will be reading it for rendering.

useMemo doesn't have this restriction.

CodeMirror 版本冲突

升级所有包到最新版后, 常常出现版本冲突. 解决方案是: yarn list @codemirror/state 然后把 @codemirror/state 调整成正确的版本, 使整个系统中只有一个版本. 还得杀出 node_modules 文件夹并且 重新 yarn install