Meteor.publish('residentFeelings', function (residentId) {
  // Get all feelings for a given residentId
  return Feelings.find({ residentId });
});

// Count of feelings for a given residentId
// primarily designed to 'signal' the resident feelings chart to re-render
// TODO: figure out a 'cleaner' way to signal the feelings chart to re-render
// https://forums.meteor.com/t/send-reactive-signal-from-server-to-client/39141
Meteor.publish('residentFeelingsCount', function(residentId) {
  // Create a counter for the current residentId
  // in the form of 'resident-{ ID }-feelings-count'
  Counts.publish(
    this,
    `resident_${ residentId }_feelings_count`,
    Feelings.find({ residentId })
  );
});

@@ -145,565 +145,4 @@
 %7D);%0A
-%0A// Count of feelings for a given residentId%0A// primarily designed to 'signal' the resident feelings chart to re-render%0A// TODO: figure out a 'cleaner' way to signal the feelings chart to re-render%0A// https://forums.meteor.com/t/send-reactive-signal-from-server-to-client/39141%0AMeteor.publish('residentFeelingsCount', function(residentId) %7B%0A  // Create a counter for the current residentId%0A  // in the form of 'resident-%7B ID %7D-feelings-count'%0A  Counts.publish(%0A    this,%0A    %60resident_$%7B residentId %7D_feelings_count%60,%0A    Feelings.find(%7B residentId %7D)%0A  );%0A%7D);%0A

Revert "Add residentFeelingsCount publication"