79516954

Date: 2025-03-18 09:50:31
Score: 0.5
Natty:
Report link

The problem is that youre subscribing multiple times and not waiting for the subscription to be ready before fetching the data. To fix this, you only need to subscribe once in componentDidMount and check if the subscription is ready using ready(). Then, you can use Tracker.autorun() to reactively fetch and update the messages when they change.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: haakonsollund