cf32a09221
Currently, the editor gets recreated whenever the camera options (or several other props that are only relevant at initialisation time) get changed. This diff makes it so that: - init-only props are kept in a ref so they don't invalidate the editor (but are used when the editor _does_ get recreated) - camera options are kept up to date in a separate effect ### Change type - [x] `bugfix` ### Release notes Fix an issue where changing `cameraOptions` via react would cause the entire editor to re-render |
||
---|---|---|
.. | ||
assets | ||
dotcom-shared | ||
editor | ||
namespaced-tldraw | ||
state | ||
store | ||
sync | ||
sync-react | ||
tldraw | ||
tlschema | ||
utils | ||
validate | ||
worker-shared |