I have an interval that starts when my component renders. this interval will get chart data from server and draw charts based on the data. but after some time if the browser tab goes in background interval wont call my API and wont update data.
what should I do to handle that?