What I’m making is a simple application that relies on data in my Supabase DB. I want to set up a Data Query that fetches the current rows in my table, which I can then display in my application. When I use the application I want that if the table has been altered, and I refresh the page, it should show that new data.
However, the data seems to get cached by Plasmic and refreshing does nothing. Placing a button to refresh the data does so, until you reload the page and it shows the old data again. The cache seems to time out after 10 minutes or so.
It is worth mentioning that I am completely new to Plasmic.
Welcome to the forum. You would need to subscribe to realtime changes from Supabase and invalidate your query so it can be refetched automatically with the new data. You can achieve that by attaching a script in OnLoad() function in SideEffect component. Please refer to the attached post provided below for more details.