You can fix it by doing this: await act(async () => { await waitForNextUpdate(); }); You need to wrap any function that's going to update the state by the ...
確定! 回上一頁