No clear guidelines on updating react component on data change

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      I ran into a problem when getting started with realm where I didn't know how to update a react component when the data changed for a realm query.

      Finally found this answer on stack overflow which was super helpful: http://stackoverflow.com/questions/35902361/realm-react-native-best-practice-to-implement-auto-updates

      The docs have no specific answers for this, and the example app actually solves this issue slightly differently by passing props. I imagine this is probably one of the first things anyone using realm would run into so giving some clear guidelines in docs would be a great idea IMO.

      Happy to set up a PR for this.

            Assignee:
            Unassigned
            Reporter:
            Unito Sync Bot
            Archiver:
            Marc Greenfield

              Created:
              Updated:
              Resolved:
              Archived: