Closed thatgibbyguy closed 8 years ago
homeContent.find({}).fetch()
This line is causing the error. homeContent
is the React component you just defined, not a collection.
Also, you should define the React component outside of the helper to avoid redefining it every time the helper re-runs.
What an obvious mistake, thanks sir.
I posted this over on stackoverflow but I'm starting to feel this may be a bug with the react package itself.
The error occurs as soon as I create a new react class.
Example code that keeps mini-mongo in tact
Example code that breaks the app
Essentially the issue is that I simply cannot create a react component without breaking mini-monogo. Once I implement a react component - with or without reactive data - I will always receive the following errors:
Exception from Tracker afterFlush function: undefined
TypeError: homeContent.find is not a function