On Preview Cant Find Where Data Is Being Retrieved

Hello Bubble Community

Having some issues and trying to locate where a specific URL is defining the “Sample:User”

I have only two Users in my DB, and this is neither, so confused as everytime I go to Preview I have to refresh the page twice to show the real information

On initial Preview I See which as a user does not exist

When i refresh the page

Any know why this is happening?

Thanks

It’s because when you click preview, you’re not specifying the user to run the page as.

@Nocodify is there anyway to do this for development to define my test account?

Thanks!

I don’t think there is a setting to always run a preview as a certain user.

If you go to the DB user accounts, you can specify the “run as” for that particular user.

A workaround for this is to just keep the web page open and refresh it instead of clicking the preview button in the editor.

hmmm thanks @Nocodify bit annoying as I am sure now for the last few hours this is the reason I assumed pages were not working but it was the fact the page preview was going to this sample:user account which I don’t even know why it exists as its not even in my DB

I usually have an account that I stay logged in when I’m developing. Then, when I preview, I’m always logged in as that user. I find if I forget to login, that’s when the sample:user pops up.

In your case, it seems weird that sometimes it works, and sometimes it doesn’t. That behavior doesn’t make sense to me. Maybe file a bug report?

might just do that, something I have learnt again today “Make sure i stay logged in or just refresh” now to undo all my work and retest!

thanks