Skip to content

fix(rxjs): prevent clearing RAF scheduled id if it does not match the action id#7595

Open
edusperoni wants to merge 1 commit intoReactiveX:masterfrom
edusperoni:fix/rxjs-raf
Open

fix(rxjs): prevent clearing RAF scheduled id if it does not match the action id#7595
edusperoni wants to merge 1 commit intoReactiveX:masterfrom
edusperoni:fix/rxjs-raf

Conversation

@edusperoni
Copy link

@edusperoni edusperoni commented Mar 4, 2026

Description:

When using animationFrameScheduler and recycling the async id the action might remove the latest schedlued id from the scheduler, which makes the scheduler stop firing.

See #7198

I couldn't find a way to test this properly. It seems to happen very randomly, but the fix does solve our case

Related issue (if exists):

Found a stackoverflow thread from years ago: https://stackoverflow.com/questions/72916854/rxjs-animationframescheduler-stops-working-unexpectedly

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