Skip to content

Commit

Permalink
Converts svelte state to snapshot before passing to postMessage API (#…
Browse files Browse the repository at this point in the history
…1936)

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

* removes log
  • Loading branch information
wesbos authored Jan 10, 2025
1 parent 89e5914 commit c0ed7a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/search/SearchBox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
run(() => {
if (ready) {
worker.postMessage({ type: 'recents', payload: $search_recent });
worker.postMessage({ type: 'recents', payload: $state.snapshot($search_recent) });
}
});
Expand Down

0 comments on commit c0ed7a0

Please sign in to comment.