Closed marktforsyth closed 4 years ago
After navigating away from the search page (e.g. home, to a recipe, etc.) I want the searchbar to clear.
https://nextjs.org/docs/api-reference/next/router#routerevents
But also, the current solution (of exporting the function from NavBar to SearchResults) might not be the cleanest possible, so I'll check with Jared.
Ok, it is fixed.
After navigating away from the search page (e.g. home, to a recipe, etc.) I want the searchbar to clear.