FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: clear the `resolvedPage` when entry is being cleared, change the passed `View` to be a weak reference by VladimirAmiorkov · Pull Request #7327 · NativeScript/NativeScript · GitHub

fix: clear the resolvedPage when entry is being cleared, change the passed View to be a weak reference - #7327

Merged
dtopuzov merged 8 commits into
releasefrom
amiorkov/memory-issues-fix-release
Jun 21, 2019
Merged

dtopuzov merged 8 commits into
releasefrom
amiorkov/memory-issues-fix-release

Conversation

VladimirAmiorkov commented Jun 6, 2019
edited
Loading

Copy link
Copy Markdown
Contributor

PR Checklist

What is the current behavior?

When navigating to a Page that contains any kind of elements (GridLayout, ListView, RadListView etc.), if you navigate back and trigger JS GC those elements and the Page itself are never collected and stay in the memory.

What is the new behavior?

When navigating to a Page that contains any kind of elements (GridLayout, ListView, RadListView etc.), if you navigate back and trigger JS GC those elements and the Page itself are collected and are removed from the memory.

Fixes/Implements/Closes #[Issue Number].

Here is a sample project that I created to test this case:
memory-test.zip

fix: change the passed `View` to be a weak reference
…g to be used

chore: add condition to check if weak ref has not been cleared when it is being used
VladimirAmiorkov changed the title fix: clear the resolvedPage when entry is being cleared, change the passed View to be a weak reference [DO NOT MERGE] fix: clear the resolvedPage when entry is being cleared, change the passed View to be a weak reference Jun 18, 2019
VladimirAmiorkov changed the title [DO NOT MERGE] fix: clear the resolvedPage when entry is being cleared, change the passed View to be a weak reference fix: clear the resolvedPage when entry is being cleared, change the passed View to be a weak reference Jun 18, 2019

Copy link
Copy Markdown
Contributor

test

NativeScript deleted a comment from VladimirAmiorkov Jun 18, 2019

Copy link
Copy Markdown
Contributor Author

test

2 similar comments

Copy link
Copy Markdown
Contributor

test

Copy link
Copy Markdown
Contributor

test

Copy link
Copy Markdown
Contributor

test package_version#latest

1 similar comment

Copy link
Copy Markdown
Contributor

test package_version#latest

Copy link
Copy Markdown
Contributor

test

dtopuzov merged commit dfe7621 into release Jun 21, 2019
manoldonev deleted the amiorkov/memory-issues-fix-release branch June 21, 2019 10:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL