Skip to content

Commit

Permalink
Merge pull request #5 from trueadm/svelte-5
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit authored Nov 22, 2024
2 parents 93ccdb5 + 51b53a9 commit f93df33
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"signal-polyfill": "^0.1.0",
"signia": "^0.1.5",
"solid-js": "^1.8.22",
"svelte": "5.0.0-next.249",
"svelte": "5.0.0-next.268",
"usignal": "^0.9.0",
"valtio": "^2.0.0"
},
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/frameworks/svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ export const svelteFramework: ReactiveFramework = {
effect: (fn) => {
$.render_effect(fn);
},
withBatch: (fn) => {
$.flush_sync(fn);
},
withBatch: $.flush_sync,
withBuild: <T>(fn: () => T): T => {
let res: T | undefined;
$.effect_root(() => {
Expand Down

0 comments on commit f93df33

Please sign in to comment.