I'm currently developing a specialized interface that showcases the cumulative ticket count (an integer representing the total) sourced from a 3rd party API. My goal is to trigger a notification whenever this count increases. I've come across information about mutationobservers, which are commonly used for similar tasks like monitoring additions or deletions.
The application features a Vue frontend and a Laravel backend responsible for handling requests and authentication. The index blade initializes a Vue component that encompasses various sub-components (responsible for distributing data received from the API to child components).
While considering using mutationobservers for this task, I am uncertain if they are the most suitable option. Research did not yield satisfactory alternative solutions.
In summary, I would appreciate insights on whether mutationobservers are appropriate for this scenario and any other recommendations for better-suited alternatives.