I have a table that uses a pipe to collect new data whenever the page is rendered.
But I want to show the new data on the rendered page, and so I would like the table to automatically refresh after 1/2 second.
I have used the AI and it suggests using
This works, but keeps repeating every 1/2 second and I only want the action once.
I have tried building if else logic to detect first time and route else if not - its ignored.
I have tried using clearTimeout but this either stops the first action, or is ignored.
I am in the dark, can anyone cast any light on what I need to do, please.