Blame view
imports/ui/containers/documents-list.js
492 Bytes
d1f05315d
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import React from 'react'; import { composeWithTracker } from 'react-komposer'; import { Documents } from '../../api/documents/documents.js'; import { DocumentsList } from '../components/documents-list.js'; const composer = ( params, onReady ) => { const subscription = Meteor.subscribe( 'documents' ); if ( subscription.ready() ) { let documents = Documents.find().fetch(); onReady( null, { documents } ); } }; export default composeWithTracker( composer )( DocumentsList ); |