Hi there,
I have a problem with the following situation using Meteor 1.3 and React:
I have a component called “Dashboard”, for which I use a subcomponent in the Render function:
render () {
…
return (
< subComponent param1={this.props.something} />
…
)
}
The subComponent contains in it’s render function a find and fetch on a collection, e.g.:
render()
{
…var results = collection.find().fetch(this.props.param1);
return() { <div> { results } </div> }
... }
Now the subcomponent should re-render once the collection changes as used in its render function. This is however not working. I have read something about React Containers, but I can only find how to use them in Routers, not in components itself.
Can anyone please advice in this one?
Thanks in advance.