Clarify the point about keeping pages in the DOM

Open
#2,107 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
react
Domain
documentation

Research direction

Open the React lifecycle documentation at the provided URL and read the paragraph containing “Ionic might keep” the page in the DOM. Verify the conditions for retaining and removing a navigated-away page, then revise the paragraph to explain those conditions and whether an already retained page can be removed.

Written by the indexing model from the issue text.

Description

content

URL
https://ionicframework.com/docs/react/lifecycle#react-lifecycle-methods

What is missing or inaccurate about the content on this page?
There are such words in this paragraph:

componentDidMount fires the first time a page is displayed, but if you navigate away from the page Ionic might keep the page around in the DOM

Can anyone please clarify what does 'might keep' mean? When does Ionic keep the page in the DOM and when doesn't? Can
Ionic remove already kept page from the DOM?

Dominant language
MDX
Stars
621
Forks
3.2k
Avg merge
1d 2h
Merged PRs (30d)
86

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ionic-team/ionic-docs

All issues in ionic-team/ionic-docs

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.