fix(core): resume without queued events#739
Conversation
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe ChangesResume without queued events
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🦋 Changeset detectedLatest commit: 060a256 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@stackflow/core
@stackflow/link
@stackflow/plugin-activity-guard
@stackflow/plugin-basic-ui
@stackflow/plugin-blocker
@stackflow/plugin-devtools
@stackflow/plugin-google-analytics-4
@stackflow/plugin-history-sync
@stackflow/plugin-lifecycle
@stackflow/plugin-renderer-basic
@stackflow/plugin-renderer-web
@stackflow/plugin-sentry
@stackflow/plugin-stack-depth-change
@stackflow/plugin-stack-persistence
@stackflow/react-ui-core
@stackflow/react
commit: |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
stackflow-docs | 060a256 | Commit Preview URL | Jul 26 2026, 04:38 PM |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
core/src/aggregate.spec.ts (1)
4135-4162: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winCover the new
loadingbranch.This test only exercises resumption with no active transitions, so it cannot catch regressions in the new
enter-active/exit-activepath that should restoreglobalTransitionStateto"loading".🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@core/src/aggregate.spec.ts` around lines 4135 - 4162, Add coverage in the aggregate test for the loading branch by constructing events with an active transition before the Paused and Resumed events, such as an enter-active/exit-active sequence. Assert that Resumed restores globalTransitionState to "loading" while retaining the expected pausedEvents and event list behavior; keep the existing idle-state scenario unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@core/src/aggregate.spec.ts`:
- Around line 4135-4162: Add coverage in the aggregate test for the loading
branch by constructing events with an active transition before the Paused and
Resumed events, such as an enter-active/exit-active sequence. Assert that
Resumed restores globalTransitionState to "loading" while retaining the expected
pausedEvents and event list behavior; keep the existing idle-state scenario
unchanged.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 4cd72b25-6a42-4412-8d81-045684dcf8ce
📒 Files selected for processing (4)
.changeset/fep-2636-resume-without-queued-events.mdcore/src/activity-utils/makeStackReducer.tscore/src/aggregate.spec.tscore/src/makeCoreStore.spec.ts
Summary
pause().globalTransitionStatetoidleorloadingfrom the current Activity transitions when resuming.onResumedand subsequent navigation.Linear: FEP-2636