)
}
/*
* Separate the Meteor calls as much as possible to avoid them being run repeatedly unnecessarily (were being run on every selection in the table).
*/
export default () => {
const {rows} = useTracker(() => {
const rows = Meteor.users.find({}).fetch();
for(let row of rows) {
row.roles = Roles.getRolesForUser(row, {anyScope: true})
}
return {
rows
}
});
return
}