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

Warning: withAsync is deprecated and will be removed in the next major version. Use useAsync instead. #782

Closed
hakanolgun opened this issue Mar 31, 2023 · 2 comments
Assignees

Comments

@hakanolgun
Copy link

hakanolgun commented Mar 31, 2023

Version

6.1.0

Steps to reproduce

Usage of this package in a Next.JS app.

Expected Behavior

No warning.

Actual Behavior

I'm getting this warning:
Warning: [react-bootstrap-typeahead] Warning: withAsync is deprecated and will be removed in the next major version. Use useAsync instead.

Thank you for this useful package. Everything works as expected. I just see the warning above on my console.

@hakanolgun hakanolgun added the bug label Mar 31, 2023
@ericgio ericgio removed the bug label Mar 31, 2023
@ericgio ericgio self-assigned this Mar 31, 2023
@ericgio
Copy link
Owner

ericgio commented Mar 31, 2023

Hey @hakanolgun thanks for the report. The HOCs were deprecated in v6.1 but AsyncTypeahead is still using withAsync. I'll update to use useAsync. In the meantime you can safely ignore the warning.

@ericgio ericgio reopened this Mar 31, 2023
@ericgio
Copy link
Owner

ericgio commented Apr 1, 2023

Warning fixed in v6.1.1

@ericgio ericgio closed this as completed Apr 1, 2023
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

No branches or pull requests

2 participants