In ReactiveUserQuery component, returning <div>{this.props.children}</div> does not also pass the user object to the <MenuWhichDependsOnUserName/>. I have tried React.cloneElement, and passing props there, but I get a bunch of confusing Tracker Errors.
Is there some standard way of passing reactive data to children of the containerComponents?
You might be seeing tracker errors because your user collection hasn’t yet been fully subscribed to?
If you’re having issues with that either set a loading page up or use FastRender for the user collection.
I’m using the new react-meteor-data. I didn’t know they stored the data in this.data… I thought this was only true for the Mixin version? Meteor gets upset when I try to use React.cloneElement to pass the props to children of the WatchUsers container…
Exception from Tracker recompute function:
debug.js:41 Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.