ParseReact icon indicating copy to clipboard operation
ParseReact copied to clipboard

React-native: [ParseReact.Mixin] throws error

Open josefrichter opened this issue 10 years ago • 2 comments

I am getting >> undefined is not an object (evaluating 'stackString.split') << whenever I include [ParseReact.Mixin]. I wasn't able to track down more details. What does this error mean actually?

Does it require any additional step to subscribe in react-native?

josefrichter avatar Jun 25 '15 17:06 josefrichter

React Native shouldn't require any extra work on your part. stackString.split is part of React Native's exception-rendering code, so I can't really help there. However, from that it sounds like ParseReact is throwing an exception -- the most common reason for this is that you have included ParseReact.Mixin on a component, but you have not implemented an observe() lifecycle method.

andrewimm avatar Jun 25 '15 17:06 andrewimm

I do have observe() implemented, see here https://gist.github.com/josefrichter/3a94485c8889724b5f02#file-gistfile1-js-L20

I just cannot get any more details to the error, so I also cannot figure out why it's happening. Can you see anything suspicious there, please?

josefrichter avatar Jun 25 '15 18:06 josefrichter