Skip to content

Wrap render calls with act() for better Hooks integration #111

@thymikee

Description

@thymikee

Hooks work fine even without it, but you'll likely need to add asynchrony to your code. With act() you'll be able to achieve the same results in synchronous manner.

See: https://reactjs.org/blog/2019/02/06/react-v16.8.0.html#testing-hooks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions