ParseReact icon indicating copy to clipboard operation
ParseReact copied to clipboard

Observer data is fails!

Open jamlfy opened this issue 8 years ago • 2 comments
trafficstars

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.

jamlfy avatar Jul 29 '17 22:07 jamlfy

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

bosz avatar Oct 14 '19 12:10 bosz

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

lacker avatar Oct 14 '19 17:10 lacker