Skip to content
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

deduplicate stream inserts #3599

Merged
merged 1 commit into from
Dec 23, 2024
Merged

deduplicate stream inserts #3599

merged 1 commit into from
Dec 23, 2024

Conversation

SteffenDE
Copy link
Collaborator

Also adjusts stream_insert to prepend the insert instead of expensively appending it.

Fixes #2689. Closes #3596. Closes #3598.

Also adjusts stream_insert to prepend the insert instead of expensively
appending it.

Fixes #2689.
Closes #3596.
Closes #3598.
Copy link
Member

@josevalim josevalim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOVE IT!

Btw, what would happen before this patch if you did duplicate items? It would crash in the client?

@SteffenDE
Copy link
Collaborator Author

You'd get duplicate IDs on the client, yes: #2689

@SteffenDE SteffenDE merged commit 65bdbc4 into main Dec 23, 2024
16 checks passed
@SteffenDE SteffenDE deleted the sd-stream-dedup branch December 23, 2024 10:32
@eadz
Copy link

eadz commented Dec 23, 2024

It also crashed the backend when you're rendering live components as those had duplicate ids too.

@eadz
Copy link

eadz commented Dec 23, 2024

Thanks for fixing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicate stream item ids
3 participants