It seems like you don't have any code provided, making it difficult to give the exact solution for your specific situation. Additionally, you haven't specified how you want to prevent a 'refresh', such as through a button click or another method.
In this scenario, I recommend looking into Socket.io, which is a Node.js framework that facilitates communication with WebSockets. WebSockets establish a direct connection between the client and server without needing client-side triggers. Instead of constantly fetching data at intervals in your application, consider leveraging the capabilities of Socket.io. For a more comprehensive explanation, check out Jeff from fireship's video on this topic here: https://www.youtube.com/watch?v=1BfCnjr_Vjg
You can also refer to the official socket.io documentation for additional guidance: https://socket.io/docs/v4/
Here are some useful resources:
https://www.youtube.com/watch?v=ZKEqqIO7n-k
https://www.youtube.com/watch?v=tVUE_JiPU-k
I hope this information proves helpful to you!