Skip to content

docs(lifecycle): clarify method descriptions #2951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/angular/lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ In addition to the Angular life cycle events, Ionic Angular provides a few addit
| Event Name | Description |
| ------------------ | ------------------------------------------------------------------ |
| `ionViewWillEnter` | Fired when the component routing to is about to animate into view. |
| `ionViewDidEnter` | Fired when the component routing to has finished animating. |
| `ionViewWillLeave` | Fired when the component routing from is about to animate. |
| `ionViewDidLeave` | Fired when the component routing to has finished animating. |
| `ionViewDidEnter` | Fired when the component routing to has *finished* animating. |
| `ionViewWillLeave` | Fired when the component routing *from* is about to animate. |
| `ionViewDidLeave` | Fired when the component routing *from* has *finished* animating. |

These lifecycles are only called on components directly mapped by a router. This means if `/pageOne` maps to `PageOneComponent`, then Ionic lifecycles will be called on `PageOneComponent` but will not be called on any child components that `PageOneComponent` may render.

Expand Down
6 changes: 3 additions & 3 deletions docs/react/lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ Ionic provides a few lifecycle methods that you can use in your apps:
| Event Name | Description |
| ------------------ | ------------------------------------------------------------------ |
| `ionViewWillEnter` | Fired when the component routing to is about to animate into view. |
| `ionViewDidEnter` | Fired when the component routing to has finished animating. |
| `ionViewWillLeave` | Fired when the component routing from is about to animate. |
| `ionViewDidLeave` | Fired when the component routing to has finished animating. |
| `ionViewDidEnter` | Fired when the component routing to has *finished* animating. |
| `ionViewWillLeave` | Fired when the component routing *from* is about to animate. |
| `ionViewDidLeave` | Fired when the component routing *from* has *finished* animating. |

These lifecycles are only called on components directly mapped by a router. This means if `/pageOne` maps to `PageOneComponent`, then Ionic lifecycles will be called on `PageOneComponent` but will not be called on any child components that `PageOneComponent` may render.

Expand Down
7 changes: 3 additions & 4 deletions docs/vue/lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ This guide discusses how to use the Ionic Framework Lifecycle events in an Ionic
## Ionic Framework Lifecycle Methods

Ionic Framework provides a few lifecycle methods that you can use in your apps:

| Event Name | Description |
| ------------------ | ------------------------------------------------------------------ |
| `ionViewWillEnter` | Fired when the component routing to is about to animate into view. |
| `ionViewDidEnter` | Fired when the component routing to has finished animating. |
| `ionViewWillLeave` | Fired when the component routing from is about to animate. |
| `ionViewDidLeave` | Fired when the component routing to has finished animating. |
| `ionViewDidEnter` | Fired when the component routing to has *finished* animating. |
| `ionViewWillLeave` | Fired when the component routing *from* is about to animate. |
| `ionViewDidLeave` | Fired when the component routing *from* has *finished* animating. |

These lifecycles are only called on components directly mapped by a router. This means if `/pageOne` maps to `PageOneComponent`, then Ionic lifecycles will be called on `PageOneComponent` but will not be called on any child components that `PageOneComponent` may render.

Expand Down