vscode-react-javascript-snippets icon indicating copy to clipboard operation
vscode-react-javascript-snippets copied to clipboard

useState snippet is not working correctly

Open Lamer217 opened this issue 3 years ago • 5 comments

This is what the snippet returns: ('description' added by me when trying out) image

Lamer217 avatar Feb 28 '22 16:02 Lamer217

https://user-images.githubusercontent.com/17621507/156024032-fce590b5-9a85-40bb-b966-4aac524bfd96.mov

@Lamer217 hmm are you using newest version? I just tried it on my own and it works fine 🤔

EDIT: Found it's from search.

ice-chillios avatar Feb 28 '22 16:02 ice-chillios

Seems like everything should be working, but somehow it doesn't. Tried also reinstalling. What info can I provide for easier debugging?

https://user-images.githubusercontent.com/62716818/156372618-6473828b-e7aa-4a33-b032-e7238efa72f8.mp4

Lamer217 avatar Mar 02 '22 13:03 Lamer217

#255 I put a fix to it in the file

ashuvax avatar Apr 07 '22 09:04 ashuvax

useStateSnippet is working properly for me (not from snippet search though) but it's not updating the import at the top automatically.

is there any way to fix it. options to solve it? @dsznajder

priyomukul avatar Aug 04 '22 09:08 priyomukul

@priyomukul probably not as it would need to trigger 2 hooks on one input :/ I'm annoyed as you with this 😓 I might ask someone from VSCode team, but currently I'm really out of time :/.

ice-chillios avatar Aug 04 '22 11:08 ice-chillios