tldraw/packages
alex cf32a09221
Fix editor remounting when camera options change (#4089)
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
2024-07-08 10:22:25 +00:00
..
assets Update CHANGELOG.md [skip ci] 2024-06-25 13:27:57 +00:00
dotcom-shared Force interface instead of type for better docs (#3815) 2024-05-22 15:55:49 +00:00
editor Fix editor remounting when camera options change (#4089) 2024-07-08 10:22:25 +00:00
namespaced-tldraw Update CHANGELOG.md [skip ci] 2024-06-25 13:27:57 +00:00
state Update CHANGELOG.md [skip ci] 2024-06-25 13:27:57 +00:00
store Update CHANGELOG.md [skip ci] 2024-06-25 13:27:57 +00:00
sync put sync stuff in bemo worker (#4060) 2024-07-03 14:10:54 +00:00
sync-react put sync stuff in bemo worker (#4060) 2024-07-03 14:10:54 +00:00
tldraw Fix editor remounting when camera options change (#4089) 2024-07-08 10:22:25 +00:00
tlschema Demo server bookmark unfurl endpoint (#4062) 2024-07-03 10:48:34 +00:00
utils Initial bemo worker setup (#4017) 2024-07-01 11:35:23 +00:00
validate Demo server bookmark unfurl endpoint (#4062) 2024-07-03 10:48:34 +00:00
worker-shared put sync stuff in bemo worker (#4060) 2024-07-03 14:10:54 +00:00