Skip to content

docs: add async component example #171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 5, 2020
Merged

docs: add async component example #171

merged 1 commit into from
Dec 5, 2020

Conversation

timdeschryver
Copy link
Member

Closes #170

Copy link

@StarpTech StarpTech left a comment

Choose a reason for hiding this comment

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

LGTM

const load = await screen.findByRole('button', { name: /load/i });
fireEvent.click(load);

tick(10_000);

Choose a reason for hiding this comment

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

You can also use flush() if you just want to jump to the end.

@timdeschryver timdeschryver merged commit acaa8fe into master Dec 5, 2020
@timdeschryver timdeschryver deleted the async-component branch December 5, 2020 13:14
@github-actions
Copy link

github-actions bot commented Dec 9, 2020

🎉 This PR is included in version 10.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to work with timers and long asynchronous operations?
2 participants