b232ac0c45
Fixes the console error when using the context menu. Fixes https://github.com/tldraw/tldraw/issues/2170 ### Change Type - [x] `patch` — Bug fix - [ ] `minor` — New feature - [ ] `major` — Breaking change - [ ] `dependencies` — Changes to package dependencies[^1] - [ ] `documentation` — Changes to the documentation only[^2] - [ ] `tests` — Changes to any test code only[^2] - [ ] `internal` — Any other changes that don't affect the published package[^2] - [ ] I don't know [^1]: publishes a `patch` release, for devDependencies use `internal` [^2]: will not publish a new version ### Test Plan 1. Start the app. 2. Right click to open the context menu. 3. You should not see the "Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?" error in the console. The error only happens on first right click, so make sure to refresh the page before trying. - [ ] Unit Tests - [ ] End to end tests ### Release Notes - Fixes the console error when opening the context menu for the first time. |
||
---|---|---|
.. | ||
assets | ||
editor | ||
state | ||
store | ||
tldraw | ||
tlschema | ||
utils | ||
validate |