I am developing a web app that allows users to create automations for creating tables. They can manually add rows to tables and edit them and they can as well have the option to create an automation which will autotmatically add rows to their table, based on the paramters that they choose (every x minutes, etc).
I simply used setInterval function with jquery and everytime they create an automation, the setinterval function runs and adds a new row to their table, incl. the paramters, it works perfectly.
The issue is of course when the page is refreshed, the interval is destroyed and so it becomes not very useful.
What can i do to "save" the interval function to memory, so it persists until the user manually removes it?