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
When using Typescript and assigning an onClick event handler that does not return anything, the "No overload matches this call" error is thrown. The only required prop on the EventCallbackInterface is the mutation prop, however I do not want to mutate anything, just do something arbitrary such as navigate to a different page. When it runs, the event handler is called correctly so I believe this is maybe a type definition issue. Is there a workaround for this? Thanks
The text was updated successfully, but these errors were encountered:
Bugs and Questions
The Problem
When using Typescript and assigning event handler that does not return anything, the "No overload matches this call" error is thrown.
Reproduction
Sandbox created here: https://codesandbox.io/s/long-snow-m6vnz?file=/index.tsx
Description
When using Typescript and assigning an
onClick
event handler that does not return anything, the "No overload matches this call" error is thrown. The only required prop on theEventCallbackInterface
is themutation
prop, however I do not want to mutate anything, just do something arbitrary such as navigate to a different page. When it runs, the event handler is called correctly so I believe this is maybe a type definition issue. Is there a workaround for this? ThanksThe text was updated successfully, but these errors were encountered: