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

useDebouncedCallback gives incorrect import suggestion in VSCode #131

Closed
c-ehrlich opened this issue Apr 25, 2022 · 2 comments
Closed

useDebouncedCallback gives incorrect import suggestion in VSCode #131

c-ehrlich opened this issue Apr 25, 2022 · 2 comments

Comments

@c-ehrlich
Copy link

Describe the bug
When using AutoComplete in VS Code for useDebouncedCallback, it suggest importing it from use-debounce/lib. However this import doesn't work, the correct input is use-debounce

To Reproduce
Install use-debounce, create a React component, type const a = useDebouncedCallback, and look at the autocomplete suggestions for the import

Expected behavior
It should suggest to import from use-debounce

use-debounce version:
7.0.1

@xnimorz
Copy link
Owner

xnimorz commented May 1, 2022

Hey @c-ehrlich
Thanks for reporting!

I've published v8.0.0 of the library.

Now it resolves pathes correctly:
image

If you get any issues during the update from 7.x.x => 8.x.x here is a guidance: https://github.com/xnimorz/use-debounce/blob/master/CHANGELOG.md#800

@xnimorz
Copy link
Owner

xnimorz commented May 1, 2022

I'm closing this issue as it should be resolved for now. Please, feel free to re-open it if you still get any issues with it

@xnimorz xnimorz closed this as completed May 1, 2022
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