I have a component which updates once component is mounted. In that case I am getting this error in my test cases. How can I use act() when the state is being updated on mou