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
@typescript-eslint/unbound-method: Avoid referencing unbound methods which may cause unintentional scoping of `this`. If your function does not access `this`, you can annotate it with `this: void`, or consider using an arrow function instead.
Nope, normal functional components defined as arrow functions. To be honest I don't understand enough about typescript to understand why it's complaining about this.
What happened?
The above will throw:
According to this stackoverflow post, it's because there's a meaningful difference between:
which is that the former is typed as a
function()
definition and carries thethis
weirdness, where the latter is not.Reproduction Steps
Relevant log output
Screenshots or Additional Context
No response
Module Version
5.7.2
What browsers are you seeing the problem on? Select all that apply.
No response
What devices are you seeing the problem on?
No response
Verification
The text was updated successfully, but these errors were encountered: