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 following Eslint error appeared in the setFieldValue function when updating to version 2.3.2 of formik.
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.eslint@typescript-eslint/ unbound-method
When I look at the FormikHelpers types, though, they were defined as follows,
Bug report
The following Eslint error appeared in the
setFieldValue
function when updating to version 2.3.2 of formik.When I look at the
FormikHelpers
types, though, they were defined as follows,However, looking at the implementation, I think the correct type is
Is this type correct?
Current Behavior
Expected behavior
Reproducible example
formik.setFieldError
and eslint @typescript-eslint/unbound-method get enabledSuggested solution(s)
Additional context
Your environment
The text was updated successfully, but these errors were encountered: