Skip to content

fix: avoid act warnings#46

Merged
sheremet-va merged 1 commit into
mainfrom
fix/act-async-wait
Jan 28, 2026
Merged

fix: avoid act warnings#46
sheremet-va merged 1 commit into
mainfrom
fix/act-async-wait

Conversation

@sheremet-va

Copy link
Copy Markdown
Member

Fixes #37

@sheremet-va sheremet-va merged commit 76a2765 into main Jan 28, 2026
4 checks passed
@sheremet-va sheremet-va deleted the fix/act-async-wait branch January 28, 2026 17:29
Comment thread src/pure.tsx

function setActEnvironment(env: boolean | undefined): void {
(globalThis as any).IS_REACT_ACT_ENVIRONMENT = env
;(globalThis as any).IS_REACT_ACT_ENVIRONMENT = env

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is that intentional? Looks a bit weird, but maybe I don't know something? If so, I'd love to learn!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I moved it around during testing and kept it as with ; when merging. It’s not strictly needed here, but if there is an identifier before the expression, then it’s treated as a function call without the ;

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.

Act warnings in Vitest Browser Mode

2 participants