tldraw/packages
alex 45c8777ea0
reactive context menu overrides (#2697)
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
2024-01-31 16:35:49 +00:00
..
assets make CI check for yarn install warnings and fix the peer deps ones we have (#2683) 2024-01-30 11:41:46 +00:00
editor arrows: separate out handle behavior from labels (#2621) 2024-01-31 11:17:03 +00:00
state dev: add test-dev command for easier testing of packages (#2627) 2024-01-29 10:29:38 +00:00
store make CI check for yarn install warnings and fix the peer deps ones we have (#2683) 2024-01-30 11:41:46 +00:00
tldraw reactive context menu overrides (#2697) 2024-01-31 16:35:49 +00:00
tlschema arrows: separate out handle behavior from labels (#2621) 2024-01-31 11:17:03 +00:00
tlsync make CI check for yarn install warnings and fix the peer deps ones we have (#2683) 2024-01-30 11:41:46 +00:00
utils dev: add test-dev command for easier testing of packages (#2627) 2024-01-29 10:29:38 +00:00
validate dev: add test-dev command for easier testing of packages (#2627) 2024-01-29 10:29:38 +00:00