xnimorz / use-debounce

A debounce hook for react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

useDebouncedCallback gives incorrect import suggestion in VSCode

c-ehrlich opened this issue · comments

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

commented

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

commented

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