-
Notifications
You must be signed in to change notification settings - Fork 172
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
Collaborators from the DB #4946
Conversation
Job #10589: Bundle Size — 62.25MiB (+0.02%).
Warning Bundle contains 58 duplicate packages – View duplicate packages Bundle metrics
Bundle size by type
View job #10589 report View feat/remix-collaborators-db branch activity View project dashboard |
Performance test results: |
1 similar comment
Performance test results: |
} | ||
|
||
export function useCollaborators() { | ||
return useStorage((store) => store.collaborators) | ||
return useEditorState( | ||
Substores.restOfEditor, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to add a new Substore for multiplayer related stuff.
Or maybe use an atom for collaborators instead of the editor state (it seems to be quite independent from other parts of the state)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gbalint I added a multiplayer substate here fbb22ca
(#4946) . would that work for you or would you prefer the atom instead?
8f72976
to
fbb22ca
Compare
Performance test results: |
Fix #4944
This is a followup to #4923, that turns the Utopia DB into the source of truth for collaborators, dropping them from the storage entirely.
.app
while we don't enable the BFF there too.The
collaborators
field in the LB object is kept just as a compatibility measure until we enable the BFF in production. A consequent PR should drop entirely that field and the other related things marked as_DEPRECATED
.