router.refresh() doesn't work properly when followed by a router.push()
Unanswered
Clément posted this in #help-forum
ClémentOP
// Force hard refresh to avoid cache issues
router.refresh()
return router.push('/login')On my code, i have that, it push but the refresh has the refresh did not have time to occur, an await does not help the situation. I don't want to do arbitrary useTimeouts. What solutions can work? thanks in advance !