In the new update of SonarQube that includes the TypeScript rule S6544, the following error has emerged in my code: “Promise-returning function provided to attribute where a void return was expected”. I have already verified that the function is not a promise, but the error persists. Has anyone experienced the same or a similar error? I am using the React Hook Form library for form handling.
Hi Ilia, in this line but I don’t have control of the function handle submit I try with example of react-hook-form documentation and sonar continue show the error
We’re looking into the situation of flagging situations where promises are returned and void is expected in JSX attributes. We will come back to you shortly.