Describe the bug
In the below code sandbox link my use case is, if the isLoggedIn value is true then the second step shouldn't be rendered. For that I am returning the isLoggedIn value in the relevant function. But here even though the variable isLoggedIn value is changed to true the second step is still rendering. I have tried with relevancedeps also which also didn't give me any change.
Describe the bug In the below code sandbox link my use case is, if the isLoggedIn value is true then the second step shouldn't be rendered. For that I am returning the isLoggedIn value in the relevant function. But here even though the variable isLoggedIn value is changed to true the second step is still rendering. I have tried with relevancedeps also which also didn't give me any change.
To Reproduce
https://codesandbox.io/s/multie-step-practice-forked-1zbtd?file=/src/App.js