React hooks reducer code called twice.
Is this someone already faced?
When I was returning state from the reducer, I was updating values by accessing it from the state and then returning the state.
Which was creating one more update life cycle for the state and it was called twice.