Promise-returning function provided to attribute where a void return was expected.

On line 18 of https://pastebin.com/9EXv58Bn I am getting the error shown in the title. Should I just disable this eslint error with // eslint-disable-next-line @typescript-eslint/no-misused-promises as suggested in the "Quick Fix" ? Or update the default .eslintrc.json provided by create-t3-app?
3 Replies
Gabriel
Gabriel2y ago
Hi. Just do it like this
<button onClick={() => void signIn()}>Login</button>
<button onClick={() => void signIn()}>Login</button>
currenthandle
currenthandle2y ago
thx
Want results from more Discord servers?
Add your server