missing this pattern [Adjusting some state when a prop changes](https://react.dev/learn/you-might-not-need-an-effect#adjusting-some-state-when-a-prop-changes) different to "reset state when a props changes"
missing this pattern Adjusting some state when a prop changes different to "reset state when a props changes"