ParseReact
ParseReact copied to clipboard
Observer data is fails!
Well
import React from 'react';
import Parse, { Query } from 'parse/react-native';
import { Component } from 'parse-react/react-native';
class Foo extends (Component(React)) {
constructor(...args) {
super(...args);
}
observer (){
return { data : (new Query('data')) }
}
render() {
}
}
When delete or unmount the Component is show this._subscriptions[name].dispose is not a function. And NEVER give the data.
"parse": "1.10.0",
"parse-react": "0.5.2",
"react": "16.0.0-alpha.12",
"react-native": "0.45.1",
If you want to close the project, however, all of these believe that they have been solved.
Oh Lord, someone help. I've been stuck here for the past 2 months. Any help on how to go past this stage?
@alejonext , did you find any solution? :cryyyyyy
Try sticking a print statement in right before the exception is thrown, and seeing what sort of object this._subscriptions[name] is. Seems like it should be something with a dispose, but it isn't. Then track backwards to see how the wrong sort of object got stuck into this._subscriptions