I'm posting this issue and what I did to resolve it in case it saves someone else some time. In a React Native project I'm working on I get the error:
Cannot read property "originalQuery" of null
This happens when mutating an object consecutively. The first mutation works, the second always fails with this error. Debugging the issue I can see that the query ParseReact is trying to update is not found within its subscriptions object and that's because my query relies on a date range. Here I had to ensure that when querying for a date range (or anything dynamic for that matter) that I specify it exactly down to the seconds and milliseconds, else ParseReact will not find it within it's subscriptions when trying to refresh queries.
I'm posting this issue and what I did to resolve it in case it saves someone else some time. In a React Native project I'm working on I get the error:
This happens when mutating an object consecutively. The first mutation works, the second always fails with this error. Debugging the issue I can see that the query ParseReact is trying to update is not found within its
subscriptions
object and that's because my query relies on a date range. Here I had to ensure that when querying for a date range (or anything dynamic for that matter) that I specify it exactly down to the seconds and milliseconds, else ParseReact will not find it within it's subscriptions when trying to refresh queries."Game:kickOff,participatingTeams|[{"$gt":{"type":"Date","iso":"2016-02-25T23:00:06.079Z"},"$lt":{"type":"Date","iso":"2016-06-30T22:00:06.080Z"}}, ..."
I hope that makes sense and is of help to someone.