nativescript-community / nativescript-community/ui-pager

Static pagerItems lose binding on ios low memory warning

Open
#71 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
21
Forks
14
PR merge metrics
No merged PRs in 30d

Description

I have a simple pager on my app and everytime I hit "Simulate Memory Warning" the layout brakes, the labels lose their binding and the text disappear.

I've made this simple example that if I swipe and hit ""Simulate Memory Warning"" on some pages the label will disappear.
I think this issue only happens with static pager items, if I used items="something" this would work.
I also a another carousel plugin and it works well.

`<pager:Pager row="1" col="0" id="pager" loadMoreCount="0" selectedIndexChange="onSelectedPageChanged" showIndicator="false" disableSwipe="false" cache="false" height="100%">

            <pager:PagerItem>
                <Label text="Test1" textWrap="true" />                    
            </pager:PagerItem>
            <pager:PagerItem>
                <Label text="Test2" textWrap="true" />                    
            </pager:PagerItem>
            <pager:PagerItem>
                <Label text="Test3" textWrap="true" />                    
            </pager:PagerItem>

        </pager:Pager>`

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start with the static PagerItem markup in the issue and reproduce the failure on iOS using Simulate Memory Warning after swiping between pages. Compare static items with the working items="something" case, and verify that all labels retain their text and bindings after the warning. No source file or test is named in the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, typescript
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.