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

Search box doesn't work after navigating to the search result #1931

Closed
hudochenkov opened this issue Dec 29, 2024 · 2 comments
Closed

Search box doesn't work after navigating to the search result #1931

hudochenkov opened this issue Dec 29, 2024 · 2 comments

Comments

@hudochenkov
Copy link

  1. Open search by clicking in the search field.
  2. Enter query, e.g. 1password.
  3. Navigate to the first result.
  4. On new page click on search field — nothing happens, and there are errors in the console.

CleanShot 2024-12-29 at 23 47 24

runtime.js:238
 Uncaught DataCloneError: Failed to execute 'postMessage' on 'Worker': [object Array] could not be cloned.
    at SearchBox.svelte:84:11

errors:1 
 POST https://syntax.fm/api/errors 500 (Internal Server Error)

500 (Internal Server Error) might be unrelated. It errors, because payload has a lot of gibberish after JSON.

CleanShot 2024-12-30 at 00 00 40

@s-petey
Copy link

s-petey commented Jan 8, 2025

This could be related to state "proxied" objects not being translated properly -- see https://svelte.dev/docs/svelte/$state#$state.snapshot

@wesbos
Copy link
Collaborator

wesbos commented Jan 10, 2025

@s-petey that was the fix! thank you.

@wesbos wesbos closed this as completed in c0ed7a0 Jan 10, 2025
github-actions bot added a commit that referenced this issue Jan 10, 2025
…1936)

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

* removes log 2.1.207
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

No branches or pull requests

3 participants