Skip to content

Commit dea4a19

Browse files
committed
[docs] route-data-loaded event
1 parent 003fb32 commit dea4a19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/en/pipeline/data.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Called on an incoming component during the activation phase, after the `activate
2121

2222
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.
2323

24+
When resolved, the component will also emit a `'route-data-loaded'` event.
25+
2426
The `data` hook is different from `activate` in that:
2527

2628
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

Comments
 (0)