I have a search bar. When the user types on that search bar, I want to update the URL and the results list.
The URL is meant to reflect the search, such that, when I enter that URL directly, I am taken to that search.
Clicking on a result will take me to a ResultDetails. ResultDetails also have their own URL.
My issues:
- I can't put the search bar inside the router and tell it to
pushto the Navigator, because this will re-render the search bar, essentially creating a new one. This will disrupt the user's typing (as the search bar will lose focus) - #[layout] does not count as being inside the router and cannot
use_navigator - I can't put the search bar outside the router. This would preserve the input field, but it can't navigate
- I can't put the search bar outside while putting something inside the navigator to handle the navigation, because the ResultDetails will end up forcing you out to the results list as soon as you get to it. There's no way to make it only push if it detects a change and not when it renders
What do i do?