fix(monitor): prevent dashboard poller effect loops - #1485
Conversation
Deploying sbmd with
|
| Latest commit: |
e57121d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://7e30bbc8.sbmd.pages.dev |
| Branch Preview URL: | https://fix-monitor-poller-effect-lo.sbmd.pages.dev |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthrough
Priority: ⬆️ High Change: Bug fix · Severity of issue fixed: High Merge Risk: ⚪ Minimal · up to The poller now avoids self-triggering effect loops, preserving normal polling intervals and dashboard loading behavior. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
What this changes
Poller.start()from reading reactive response data, so callers inside a Svelte$effectdo not subscribe to the data that the poller later writes.Fixes #1481
How it was tested
npm test -- --run(10 test files, 73 tests)npm run lintnpm run build(svelte-check: 0 errors and 0 warnings; production Vite build succeeded)Checklist
make analyzeandmake testpass (not run; the Flutter app is unchanged)make genwas run, if any model / ARB file changed (not applicable)cargo test --workspacepasses, if anything undercrates/ormonitor/changed (not run; Rust code is unchanged)Summary by CodeRabbit
Bug Fixes
Tests