feat(live-preview): expose preview status helper [SPA-5289] - #170
Merged
Maxim Cheremisin (maxcheremisin) merged 2 commits intoSep 11, 2026
Conversation
Wiz Scan Summary
To detect these findings earlier in the dev lifecycle, try the Wiz Code extension for VS Code, JetBrains, or Visual Studio. |
Maxim Cheremisin (maxcheremisin)
force-pushed
the
feat/SPA-5161-live-preview-status
branch
from
September 8, 2026 06:59
26da6c6 to
5a05bda
Compare
Maxim Cheremisin (maxcheremisin)
marked this pull request as ready for review
September 8, 2026 07:19
Maxim Cheremisin (maxcheremisin)
requested a review
from a team
as a code owner
September 8, 2026 07:19
Maxim Cheremisin (maxcheremisin)
force-pushed
the
feat/SPA-5161-live-preview-status
branch
from
September 8, 2026 07:22
5a05bda to
fb1ba8f
Compare
Maxim Cheremisin (maxcheremisin)
force-pushed
the
feat/SPA-5161-live-preview-status
branch
from
September 9, 2026 08:35
ad2dd47 to
c234d7e
Compare
Chase Poirier (chasepoirier)
approved these changes
Sep 9, 2026
Thomas Kellermeier (Chaoste)
approved these changes
Sep 10, 2026
Daniel Vasylenko (Spring3)
approved these changes
Sep 10, 2026
Maxim Cheremisin (maxcheremisin)
force-pushed
the
feat/SPA-5161-live-preview-status
branch
from
September 10, 2026 10:24
c234d7e to
0bc8fb9
Compare
Maxim Cheremisin (maxcheremisin)
force-pushed
the
feat/SPA-5161-live-preview-status
branch
from
September 10, 2026 10:37
0bc8fb9 to
7b403f9
Compare
Maxim Cheremisin (maxcheremisin)
force-pushed
the
feat/SPA-5161-live-preview-status
branch
from
September 10, 2026 10:38
7b403f9 to
55f3855
Compare
Maxim Cheremisin (maxcheremisin)
force-pushed
the
feat/SPA-5161-live-preview-status
branch
2 times, most recently
from
September 11, 2026 09:58
53e2814 to
a9950fa
Compare
Maxim Cheremisin (maxcheremisin)
force-pushed
the
feat/SPA-5161-live-preview-status
branch
from
September 11, 2026 11:22
a9950fa to
7565c04
Compare
Maxim Cheremisin (maxcheremisin)
force-pushed
the
feat/SPA-5161-live-preview-status
branch
from
September 11, 2026 11:44
7565c04 to
69a28cd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Expose Preview Session transport status to the containing preview host and wire it into the React, Svelte, and Angular live-preview adapters.
Description
The shared live-preview client exposes
subscribeStatus. The exportedsendPreviewStatushelper publishes this message:Each raw live-preview adapter subscribes to the shared client status:
packages/adapter-react/src/use-live-preview-experience.tspackages/adapter-svelte/src/use-live-preview-experience.svelte.tspackages/adapter-angular/src/inject-live-preview-experience.tsThe combined hooks inherit the behavior through their raw-data hooks. Adapters send
staticwhen Preview Session options are absent or incomplete,liveafter the WebSocket opens, and keepliveduring reconnects. Status subscriptions are cleaned up with the data subscriptions.The generic package owns the message format and transport status. The framework adapters only connect that status to the host-message helper.
This PR is stacked on #165 (
feat/SPA-5161-live-preview-adapters).Motivation and Context
The containing preview host needs to know whether the SDK is using static preview updates or an active Preview Session connection. A shared helper keeps this protocol consistent across direct package users and all framework adapters.
Validation
npx nx test live-previewnpx nx test adapter-reactnpx nx test adapter-sveltenpx nx test adapter-angularnpm ci --dry-run --ignore-scripts --no-audit --no-fundPR Checklist
CONTRIBUTING.mdfile