Skip to content

fix(processings): avoid to update view during live change - #4350

Open
tpoisseau wants to merge 6 commits into
mainfrom
946-we-should-reset-the-view-less-on-operation-processing-change
Open

fix(processings): avoid to update view during live change#4350
tpoisseau wants to merge 6 commits into
mainfrom
946-we-should-reset-the-view-less-on-operation-processing-change

Conversation

@tpoisseau

Copy link
Copy Markdown
Contributor

Experimental: true

@tpoisseau

Copy link
Copy Markdown
Contributor Author

I try to make the CI pass, but it seems github runners have issues to call the prediction service :
CleanShot 2026-09-01 at 11 56 37@2x

to properly support expected behavior matrix
to properly support expected behavior matrix
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 3, 2026

Copy link
Copy Markdown

Deploying nmrium with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4d735e3
Status: ✅  Deploy successful!
Preview URL: https://b287a454.nmrium.pages.dev
Branch Preview URL: https://946-we-should-reset-the-view.nmrium.pages.dev

View logs

triggerOperation dispatch a new spectrum then call prepareLiveChange.
But prepareLiveChange depends on `getSpectrum` scoped to the current state. So if we don't enforce the spectrum to prepareLiveChange. It uses the previous version of the spectrum, without the operation trigered.
The algorithm puts an undefined operation in the processings.
So next call to applyLiveChange crash.

Refs: zakodium/nmrium#947 (comment)
@tpoisseau
tpoisseau marked this pull request as ready for review September 4, 2026 10:18
@tpoisseau
tpoisseau requested a review from targos September 4, 2026 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant