You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/pipeline/data.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,8 @@ Called on an incoming component during the activation phase, after the `activate
21
21
22
22
The `data` transition hook is called immediately after the `activate` hook is resolved, and right before the view switching is executed. The entering component gets a **`$loadingRouteData`** meta property, which starts with value `true` and set to `false` when the `data` hook is resolved. This property can be used to display a loading state for the entering component.
23
23
24
+
When resolved, the component will also emit a `'route-data-loaded'` event.
25
+
24
26
The `data` hook is different from `activate` in that:
25
27
26
28
1.`data` is also called every time the route changes, even if the current component is reused, while `activate` is only called when component is newly created.
0 commit comments