Go Pro Sign Up Login
0 days 0 hrs 0 min 0 sec

Summer Sale

50% off Level Up Pro until you unsubscribe.
Get access to ALL 128 courses on Level Up Tutorials

This is your last chance to get Level Up Pro for $145/year.

or Learn More
Moon Moon

Buy Now and unlock this series

$

24

.99

$

22

.99

yours forever

Become a Pro and unlock everything

$

24

.99

per month

Iterating Over our Data

This video is about Meteor 1.4 + React For Everyone #8 Iterating Over our Data

Downloads

Become a pro to download code and videos

Comments

niloy

almost 2 years ago [edited]

@Anders you don't have to pass App in useTracker, we can just call find inside useTracker like this: => const items = useTracker(() => Items.find({}).fetch());

Anders

over 2 years ago [edited]

for withTracker instead of createContainer my code looked like so.

export default withTracker(() => {
    return{
        items: Items.find({}).fetch()
    }
})(App)

For some reason I couldn't place App with comma inside withTracker(=>{}, App) it gave me react errors

Want to join the conversation?

Become a Pro member today!