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

Converts svelte state to snapshot before passing to postMessage API #1936

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

wesbos
Copy link
Collaborator

@wesbos wesbos commented Jan 10, 2025

Svelte state is a proxy, and since we need to pass that to worker.postMessagae to log a recent search, it was breaking.

Thanks to @hudochenkov and @s-petey for the report + fix.

#1931

Copy link

vercel bot commented Jan 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
syntax-website ✅ Ready (Inspect) Visit Preview Jan 10, 2025 3:32pm

@wesbos wesbos merged commit c0ed7a0 into main Jan 10, 2025
3 of 4 checks passed
github-actions bot added a commit that referenced this pull request Jan 10, 2025
…1936)

* Passes snapshot to svelte serverice worker instead of proxy. Fixes #1931

* removes log 2.1.207
Copy link

codecov bot commented Jan 10, 2025

Bundle Report

Changes will increase total bundle size by 585 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
website-client-esm 1.93MB 584 bytes (0.03%) ⬆️
website-server-esm 30.45MB 1 bytes (0.0%) ⬆️

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.

1 participant