Next.js Discord

Discord Forum

Reloading data in Layout

Unanswered
Transvaal lion posted this in #help-forum
Open in Discord
Transvaal lionOP
I have a search bar component in my loader. I want to reload the data in my loader once the search bar is updated. So I basically use router to push to the page onchange of the input. I am able to update the URL to add a search param but in order to reload the layout data I am trying to use router.reload but that causes the page to flicker. What's the best thing to do in this scenario?

0 Replies