-
Notifications
You must be signed in to change notification settings - Fork 5
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
Send snapshot on join/invite #631
base: main
Are you sure you want to change the base?
Conversation
ab90a22
to
68bc427
Compare
🦋 Changeset detectedLatest commit: 8d6628d The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
5168458
to
1f6e508
Compare
68fc068
to
99b93dc
Compare
packages/react-sdk/src/components/FallbackSnapshotProvider/FallbackSnapshotProvider.tsx
Outdated
Show resolved
Hide resolved
); | ||
} | ||
|
||
function getMembershipFilter( |
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.
Shouldn't this be a Redux selector?
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.
Could be, I guess. Would this be by adding a new query to the roomMemberApi
that filters membership events based on type and only return joins+invites? I can see how that would be optimal for rooms with high membership volume but it's also 10x more code... Maybe there's a simpler way I'm missing?
packages/react-sdk/src/components/FallbackSnapshotProvider/FallbackSnapshotProvider.tsx
Outdated
Show resolved
Hide resolved
packages/react-sdk/src/components/FallbackSnapshotProvider/FallbackSnapshotProvider.tsx
Outdated
Show resolved
Hide resolved
packages/react-sdk/src/components/FallbackSnapshotProvider/FallbackSnapshotProvider.tsx
Outdated
Show resolved
Hide resolved
packages/react-sdk/src/components/FallbackSnapshotProvider/FallbackSnapshotProvider.tsx
Outdated
Show resolved
Hide resolved
99b93dc
to
f3e0c69
Compare
Signed-off-by: Milton Moura <[email protected]>
Signed-off-by: Milton Moura <[email protected]>
Signed-off-by: Milton Moura <[email protected]>
Signed-off-by: Milton Moura <[email protected]>
Signed-off-by: Milton Moura <[email protected]>
Signed-off-by: Milton Moura <[email protected]>
db0f9c0
to
3c3652c
Compare
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.
This needs an in-depth review. Requesting change as a blocker notice.
export const App = ({ layoutProps }: AppProps) => { | ||
const { t } = useTranslation('neoboard'); | ||
const { value, loading } = useOwnedWhiteboard(); | ||
const whiteboardManager = useWhiteboardManager(); | ||
const ownUserId = useWidgetApi().widgetParameters.userId; | ||
const whiteboardInstance = useActiveWhiteboardInstance(); |
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.
This breaks NeoBoard standalone. Can you have a look?
validator: isValidWhiteboardDocumentSnapshot, | ||
}); | ||
|
||
const handlePersist = useCallback(() => { |
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.
Would be nice if the entire logic is split out, e.g. into a hook or function. Otherwise App
becomes really cluttered.
✔️ Checklist
Signed-off-by
line in the message (more info).