Warning: Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.
How to reproduce
Actual behaviour
A warning is shown:
Expected behaviour
No warning should be shown