I cannot find documentation that says how long a state will hold its values. I read that if a page refreshes, then the state will be lost, but what about when redirecting to another component/page? Will the state be lost if I redirect from one component to another?
Or does the state last until the user physically refreshes the page?