Useeffect called twice. Here is an overview of the reason from the doc: In the future, we&r...