Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Observer data is fails! #186

Open
jamlfy opened this issue Jul 29, 2017 · 2 comments
Open

Observer data is fails! #186

jamlfy opened this issue Jul 29, 2017 · 2 comments

Comments

@jamlfy
Copy link

jamlfy commented Jul 29, 2017

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.

@bosz
Copy link

bosz commented Oct 14, 2019

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

@lacker
Copy link
Contributor

lacker commented Oct 14, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants