meteor / react-packages

Meteor packages for a great React developer experience
http://guide.meteor.com/react.html
Other
574 stars 159 forks source link

react-meteor-data not passing/updating props #220

Closed idesignpixels closed 7 years ago

idesignpixels commented 7 years ago

Meteor version 1.4.4.1 react-meteor-data version 0.2.9

There seems to be a problem passing the props returned by the container object to the component. The new props are received but not updated.

Here is a link to a sample repo https://github.com/Lindstrom1989/meteor-react-data-issue

klaussner commented 7 years ago

You are missing a return in the render function of CollectionList:

{this.props.list.map(listItem => {
  <li>{listItem.text}</li>
})}

should be

{this.props.list.map(listItem => {
  return <li>{listItem.text}</li>
})}
idesignpixels commented 7 years ago

Gah how embarrassing, thank you.