Skip to content
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

feat(wait): remove default no-op callback #461

Merged
merged 1 commit into from
Mar 4, 2020

Conversation

kentcdodds
Copy link
Member

@kentcdodds kentcdodds commented Mar 4, 2020

What: Removes the default no-op callback from wait

Why: That encourages relying on the implementation detail of waiting for the "next tick" and explicit expectations should be used instead.

How: Removed the default and added a test to check for the rejected response

Checklist:

BREAKING CHANGE: If you used wait() in the past, you now have to supply a callback. Relying on the "next tick" is an implementation detail and should be avoided in favor of explicit expectations within your wait callback.

BREAKING CHANGE: If you used `wait()` in the past, you now have to supply a callback. Relying on the "next tick" is an implementation detail and should be avoided in favor of explicit expecations within your wait callback.
@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 4, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit f629b4c:

Sandbox Source
winter-voice-ubdnf Configuration

@kentcdodds
Copy link
Member Author

If you have comments or feedback, please feel free to comment and we can get things addressed before the beta is released.

@kentcdodds kentcdodds merged commit 734ec39 into beta Mar 4, 2020
@kentcdodds kentcdodds deleted the pr/remove-default-wait-callback branch March 4, 2020 20:27
@kentcdodds
Copy link
Member Author

🎉 This PR is included in version 7.0.0-beta.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@timdeschryver timdeschryver mentioned this pull request Mar 7, 2020
4 tasks
@kentcdodds kentcdodds restored the pr/remove-default-wait-callback branch March 7, 2020 22:37
@kentcdodds kentcdodds deleted the pr/remove-default-wait-callback branch March 12, 2020 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant