Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-116

No clear guidelines on updating react component on data change

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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 Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: