I currently do containers like:
import { composeWithTracker } from 'react-komposer';
import { Organizations } from '../../../../api/Organizations/Organizations.js';
import { OrganizationsList } from './list.js';
import { Loading } from '../../loading.js';
import { Meteor } from 'meteor/meteor';
const composer = (params, onData) => {
const organizationsSub = Meteor.subscribe('organizations');
if (organizationsSub.ready()) {
let organizations = Organizations.find().fetch();
onData(null, organizations });
}
};
export default composeWithTracker(composer, Loading)(OrganizationsList);
Does anything need to change from the above other than me having to provide my own error and loading component?
I was a little thrown off but this example: