My goal is to preserve the current state of the view, not just the URL and parameters. I am looking to save the entire view along with its scopes. Specifically, I am working on creating a search system similar to Facebook's, but with a unique twist. Instead of displaying results in a separate section or modal, I want them to take over the entire page by replacing the main state. When the search bar is cleared, I aim to seamlessly restore the previous state without having to rebuild it instantly through server requests or complex operations like infinite scroll data retrieval. While exploring options like ui-router extras (sticky state) plugin, the challenge remains in determining which states need preservation based on their definitions.