mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-26 17:01:40 -05:00
* refactor: use refs to hold editor and monaco Also removed a lot of unnecessary conditionals * refactor: get a ref to the editor directly Previously we got a ref to react-monaco-editor, but that's an unnecessary layer of abstraction * fix: replace data state with ref * fix: replace remaining useStates with useRefs * refactor: simplify dataRef access * fix: store correct id for output zone * refactor: remove unused parts of MultifileEditor * fix: use separate models per fileKey Temp fix, I think the data should store one version per fileKey * fix: create data for each editor * refactor: declare data once * fix: handle widgets etc. like other data * fix: store an editor per fileKey * refactor: clean up types + initial properties * refactor: remove redundant constructor * fix: remove redundant comment * refactor: update comments