Nuxt/docs/content/1.docs/3.api/1.composables/on-before-route-update.md

12 lines
394 B
Markdown
Raw Normal View History

---
title: "onBeforeRouteUpdate"
description: The onBeforeRouteUpdate composable allows registering a route guard within a component.
---
# `onBeforeRouteUpdate`
The `onBeforeRouteUpdate` composable adds a navigation guard that triggers whenever the component for the current location is about to be updated.
::ReadMore{link="https://router.vuejs.org/api/index.html#onbeforerouteupdate"}
::