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