Skip to content

feat(overmind-svelte): upgrade to Svelte 5, fix duplicate subscription bug#656

Open
ericsorenson wants to merge 4 commits intonextfrom
upgrade-to-Svelte-5
Open

feat(overmind-svelte): upgrade to Svelte 5, fix duplicate subscription bug#656
ericsorenson wants to merge 4 commits intonextfrom
upgrade-to-Svelte-5

Conversation

@ericsorenson
Copy link
Copy Markdown
Collaborator

Upgrade svelte 3→5 using legacy compatibility mode. Replace the deprecated track(callback)/stopTracking() API with track()/subscribe(), matching the pattern used in overmind-vue. The previous code called tree.subscribe() inside afterUpdate, which registered duplicate listeners on every component update. Now subscribe is called once immediately after the initial state read.

Update test tooling (svelte-jester 5, @testing-library/svelte 4) and rewrite tests to achieve 100% coverage.

@codesandbox
Copy link
Copy Markdown

codesandbox Bot commented Apr 18, 2026

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Adjusts formatting and indentation in test files for readability and consistency. Changes include converting single-line expects and callbacks to multi-line, adding parentheses around arrow function params, and aligning object matchers. No behavioral or logic changes to tests; only stylistic edits in packages/overmind-svelte/src/index.test.ts and index.production.test.ts.
@ericsorenson ericsorenson marked this pull request as ready for review April 19, 2026 00:45
Copy link
Copy Markdown
Member

@henri-hulski henri-hulski left a comment

Choose a reason for hiding this comment

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

Looks great! Good to have Svelte fixed :)

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.

2 participants