Skip to content

fix: migrate FlowCancellationError to class implementation#4523

Merged
kubk merged 5 commits intomobxjs:mainfrom
exzos28:main
Mar 12, 2026
Merged

fix: migrate FlowCancellationError to class implementation#4523
kubk merged 5 commits intomobxjs:mainfrom
exzos28:main

Conversation

@exzos28
Copy link
Copy Markdown
Contributor

@exzos28 exzos28 commented Feb 17, 2025

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 17, 2025

🦋 Changeset detected

Latest commit: df81c14

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
mobx Patch

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

Copy link
Copy Markdown
Member

@mweststrate mweststrate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tracking and updating this! This looks a lot more idiomatic. Would you mind updating the unit tests accordingly? Some are failing now.

@kubk
Copy link
Copy Markdown
Collaborator

kubk commented Mar 12, 2026

@mweststrate

Tests have been fixed. FlowCancellationError was not a real Error instance before. This PR fixes that, preserves String(err) === "Error: FLOW_CANCELLED" for BC

@kubk kubk merged commit 56218ac into mobxjs:main Mar 12, 2026
1 check passed
@github-actions github-actions bot mentioned this pull request Mar 12, 2026
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.

3 participants