-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Sync local storage state across tabs when out of sync #4545
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/excalidraw/excalidraw/HWxvE9bWPfNYYXM9Dt6bjBijwbRY |
I've also added |
The failing tests were caused because blurring the wysiwyg was for some reason firing But this makes me wonder — the Also note that even |
Another, related thing: we need to disable the syncing when collaborating, because we're not syncing to LS during collab. |
Why do we need |
Either way, we want to make the syncing robust enough so we don't have to think whether |
# Conflicts: # src/tests/binding.test.tsx
- switching tabs before changes saved to LS (doesn't fix IDB) - makes collaboration local-state fix (previous commit) more deterministic (otherwise we'd have to hope that the sync isn't called before we reset the verisons)
An attempt to fix #2791