Weird linting with useReducer Maveh94561 创建于 2022年10月23日 16:03 Hello, why would linter be triggered of useReducer with only 2 arguments, if the third one is actually optional? It dislikes dispatch as well... The code was copied from React's useReducer documentation.
the issue is tracked at https://youtrack.jetbrains.com/issue/WEB-53963/Dispatch-function-from-Reacts-useReducer-reports-wrong-argument-requirements, please follow it for updates