/* List of movies. Wrapped with the "withList" and "withCurrentUser" containers. */ import React from 'react'; import Helmet from 'react-helmet'; import { Components, withList, withCurrentUser, Loading } from 'meteor/vulcan:core'; import Movies from '../../modules/movies/collection.js'; const MoviesList = ({results = [], currentUser, loading, loadMore, count, totalCount}) =>
{/* user accounts */}
{loading ? :
{/* new document form */} {Movies.options.mutations.new.check(currentUser) ?

Insert New Document

: null } {/* documents list */} {results.map(movie => )} {/* load more */} {totalCount > results.length ? {e.preventDefault(); loadMore();}}>Load More ({count}/{totalCount}) :

No more items.

}
}
const options = { collection: Movies, limit: 5, pollInterval: 0 }; export default withList(options)(withCurrentUser(MoviesList));