Giter VIP home page Giter VIP logo

Comments (9)

naqvitalha avatar naqvitalha commented on July 26, 2024 5

Check extendedState prop in v1.2.2.

from recyclerlistview.

Timer00 avatar Timer00 commented on July 26, 2024 3

We had a pretty similar problem, the page would not update until you went further on the magazine and then came back.
By passing our state to extendedState the problem was fixed, now it re renders properly!
extendedState={this.state}

from recyclerlistview.

naqvitalha avatar naqvitalha commented on July 26, 2024

rowHasChanged passed to DataProvider is for the same purpose. Any issues there?

from recyclerlistview.

AbdallaElabd avatar AbdallaElabd commented on July 26, 2024

It doesn't run the render function of the row I'm afraid. And I've even changed the row has changed to use lodash's deep equality check, but with no luck.

from recyclerlistview.

naqvitalha avatar naqvitalha commented on July 26, 2024

We've built multiple features where row data has changed and haven't any faced issues. This is basic functionality. Can you provide a quick repro on snack so that we can help you out?

from recyclerlistview.

naqvitalha avatar naqvitalha commented on July 26, 2024

Reopen is issue still remains. As long as you have relevant checks in rowHasChanged this is a non issue.

from recyclerlistview.

AbdallaElabd avatar AbdallaElabd commented on July 26, 2024

I'll try to isolate the problem and let you know. Thanks for following up.

from recyclerlistview.

samuely4ng avatar samuely4ng commented on July 26, 2024

Check extendedState prop in v1.2.2.

thank you so much! I've been looking for this for a solid day

from recyclerlistview.

sayo96 avatar sayo96 commented on July 26, 2024

None of the above solutions work for me.
Here is my problem:

  1. I use Recycler list for displaying a list of items (say 1,2,3,4,5)
  2. When user deletes an item (say 1) i'm updating the dataProvider which is in local state. DataProvider in local state acts as the source for recycler list view
  3. Even after the state changes the view remains the same. In my case even after the user deletes 1 and the latest values in state are (2,3,4,5) but the all the 5 items are still displayed.

The recycler list view has the correct changes (ie 2,3,4,5) when i navigate to a different section of the app and come back though.

RowhasChanged /extended state solutions as suggested above don't work for me. Please help 🙏

from recyclerlistview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.