diff --git a/package-lock.json b/package-lock.json index 671234b..4243452 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23406,7 +23406,7 @@ }, "packages/flitter": { "name": "@meursyphus/flitter", - "version": "0.0.7", + "version": "0.0.8", "license": "MIT", "dependencies": { "color-rgba": "^3.0.0", diff --git a/packages/flitter/package.json b/packages/flitter/package.json index 37e99e8..5abd34d 100644 --- a/packages/flitter/package.json +++ b/packages/flitter/package.json @@ -1,6 +1,6 @@ { "name": "@meursyphus/flitter", - "version": "0.0.7", + "version": "0.0.8", "description": "A declarative, widget-based library built on SVG for simplifying data visualization with a Flutter-like syntax.", "keywords": [ "flitter", diff --git a/packages/flitter/src/runApp.ts b/packages/flitter/src/runApp.ts index 403ceb1..ebd9c68 100644 --- a/packages/flitter/src/runApp.ts +++ b/packages/flitter/src/runApp.ts @@ -77,7 +77,6 @@ export class AppRunner { this.didRun = true; this.draw(); - this.scheduler.consumePostCallbacks(); return this.renderContext.view.innerHTML; } @@ -125,6 +124,7 @@ export class AppRunner { this.layout(); this.renderOwner.rearrangeDomOrder(); this.paint(); + this.scheduler.consumePostCallbacks(); } rebuild() {