Is data cached?

Is it normal that you see data of the previously logged-in user in the preview mode?

When I use testuser 1 to log in and log out and then use testuser 2 to log in, I can still see the data of testuser 1 and need to reload data to see current user data. Also when I edited data to the database and after editing, my edited info is blank and I also need to reload data to see the new changes.

What am I doing wrong?

Btw, am using Supabase in combination with WeWeb and haven’t turned on realtime tables (yet). Haven’t done the latter, because I am still understanding what the difference is.

Hi @JamesPan :wave:

The data isn’t cached when you create a collection in “Dynamic” mode.

This is most likely happening because of the default setting of the collection that is preserved on navigation:

For your specific use case, we recommend disabling that option to avoid exactly what you’re describing when two users use the same browser to access your app.

Here’s another topic where we discussed when and how to load collections.

2 Likes

Thank you very much @Joyce . That was indeed the solution.

1 Like