From 5b314b713f8e95f10c62528f7ea7d60ba88b0b9f Mon Sep 17 00:00:00 2001 From: Jerry Warner <43098526+BLACKSHiRTSQUAD@users.noreply.github.com> Date: Mon, 24 Jan 2022 11:25:42 +0700 Subject: [PATCH] Clarify the Ionic Lifecycle Methods documentation I think the ionViewDidLeave should state "from" not "to". Also added italics to make it clear what's different between the methods. Note - I'm reading the docs for a reason! :D if this change is wrong please someone correct me. --- docs/react/lifecycle.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/react/lifecycle.md b/docs/react/lifecycle.md index 13458ad97ba..f95614893bb 100644 --- a/docs/react/lifecycle.md +++ b/docs/react/lifecycle.md @@ -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. | The way you access these methods varies based on if you are using class-based components or functional components. We cover both methods below.