tldraw/packages
David Sheldrick b742783577
send user prefs data in broadcast msg (#1466)
fixes #1464 

The user preference changes were not broadcasting correctly in firefox
because it has a race condition wherein the broadcast message was being
received by a peer tab before the localStorage data was ready to be
consumed in that tab.

### Change Type

<!-- 💡 Indicate the type of change your pull request is. -->
<!-- 🤷‍♀️ If you're not sure, don't select anything -->
<!-- ✂️ Feel free to delete unselected options -->

<!-- To select one, put an x in the box: [x] -->

- [x] `patch` — Bug Fix
- [ ] `minor` — New Feature
- [ ] `major` — Breaking Change
- [ ] `dependencies` — Dependency Update (publishes a `patch` release,
for devDependencies use `internal`)
- [ ] `documentation` — Changes to the documentation only (will not
publish a new version)
- [ ] `tests` — Changes to any testing-related code only (will not
publish a new version)
- [ ] `internal` — Any other changes that don't affect the published
package (will not publish a new version)

### Test Plan

1. in firefox, have two tabs open in the same user context.
2. toggle dark mode.
3. the change should propagate to the other tab
2023-05-25 15:36:29 +00:00
..
assets [feature] add laser pointer (#1412) 2023-05-19 11:09:13 +00:00
editor send user prefs data in broadcast msg (#1466) 2023-05-25 15:36:29 +00:00
file-format [chore] refactor user preferences (#1435) 2023-05-25 09:54:29 +00:00
indices Create @tldraw/indices package (#1426) 2023-05-22 08:18:01 +00:00
polyfills avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
primitives Measure individual words instead of just line breaks for text exports (#1397) 2023-05-22 15:10:03 +00:00
tldraw [chore] refactor user preferences (#1435) 2023-05-25 09:54:29 +00:00
tlschema [chore] refactor user preferences (#1435) 2023-05-25 09:54:29 +00:00
tlstore [chore] refactor user preferences (#1435) 2023-05-25 09:54:29 +00:00
tlsync-client [chore] refactor user preferences (#1435) 2023-05-25 09:54:29 +00:00
tlvalidate avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
ui [fix] lock option for laser tool (#1460) 2023-05-25 15:36:12 +00:00
utils Stricter ID types (#1439) 2023-05-24 11:25:41 +00:00