distinguish refreshed or clicked in middlewarejs
Unanswered
Air Penguin posted this in #help-forum
can middlewarejs distinguish whether the current route is refreshed or clicked to redirect?
@ᴉuɐpɹɐɐ
@ᴉuɐpɹɐɐ
6 Replies
try checking fom the headers
headers().get('sec-fetch-dest') if equal "document" means its refreshed or direct accessif else, its navigated via <Link> or router.push
will browsers exhibit different behaviors?
okok,thank you very much