You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
nateshmbhat
changed the title
Not getting code completion (Types) for setting initial value for the state
Bug : Not getting code completion (Types) for setting initial value for the state
Sep 2, 2022
hmm... you are right... Typescript stopped showing type suggestions... I think it is because it can not decide which overload it needs to choose until the value is provided. I have put a workaround for TS like this, would it be acceptable?
This way seems unusual to me...
Probably will be confusing to others. Is there no way to have it auto detect based on the generic type we give to hookstate function?
Here is the image that shows the issue :
The text was updated successfully, but these errors were encountered: