45c8777ea0
Previously, we were calling context menu `overrides` in a `useMemo`, so they weren't updating reactively in the way that most of our other schema overrides do. This diff calls `override` in a `useValue` instead so it updates reactively. It also fixes some issues with testing the `<Tldraw />` component: currently we get a lot of errors in the console about updates not being wrapped in `act`. These are caused by the fill patterns at different zoom levels popping in without us waiting for them. Now, we have a helper for rendering the tldraw component that waits for this correctly and stops the error. ### Change Type - [x] `patch` — Bug fix ### Test Plan - [x] Unit Tests ### Release Notes - Context Menu overrides will now update reactively |
||
---|---|---|
.. | ||
assets | ||
editor | ||
state | ||
store | ||
tldraw | ||
tlschema | ||
tlsync | ||
utils | ||
validate |