useStateWithDeps
Declares a state within a Component. The initializer will be invoked to provide the initial value of state. The initializer will be invoked again if the deps change when the Component is rendered again.
Note: The component does not re-render if the initializer is invoked. The updated value of the state is visible to currently rendering component.
The initializer must be free from side effects because it can invoked multiple times from any Thread during the lifecycle of the Component.