79101569

Date: 2024-10-18 10:05:02
Score: 3.5
Natty:
Report link

Is this solution using queryRef to call start/stopPolling methods still working? Maybe I implemented it wrong, though seems similar to yours

//component
      queryRef: QueryRef<unknown> = this.scanQueueService.getImagesScanQueue();
      this.queryRef.startPolling(500);

//service
  getImagesScanQueue() {
    return this.apollo.watchQuery({
      query: getImagesScanQueue(),
      fetchPolicy: 'network-only',
    });
  }
Reasons:
  • RegEx Blacklisted phrase (2): working?
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is this solution
  • Low reputation (1):
Posted by: jayren