Skip to content

OTHER: Document HMR-only unmount guards and exclude them from coverage - #1

Merged
DmitriyZverev merged 1 commit into
mainfrom
dev/coverage-100
Sep 17, 2026
Merged

DmitriyZverev merged 1 commit into
mainfrom
dev/coverage-100

Conversation

@DmitriyZverev

Copy link
Copy Markdown
Member

The isSkipped/abort guard in useAsync and wasAction reset in useAutoAsync protect against hot module reloading rerunning an effect without a real unmount/remount. Document why, and mark these branches v8-ignored since they can't be exercised in a unit test

The isSkipped/abort guard in useAsync and wasAction reset in useAutoAsync
protect against hot module reloading rerunning an effect without a real
unmount/remount. Document why, and mark these branches v8-ignored since
they can't be exercised in a unit test
@DmitriyZverev
DmitriyZverev merged commit f665bf7 into main Sep 17, 2026
5 checks passed
@DmitriyZverev
DmitriyZverev deleted the dev/coverage-100 branch September 17, 2026 15:56
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