I have just published my app, and I noticed that on the first time hitting the app (e.g., going directly to the homepage), the page workflows are not firing.
These page workflows make calls to the database to present dynamic data, so I can tell they aren’t being called because the data isn’t showing on the screen.
Also, looking at the Network panel, no requests are being sent to my database (Supabae) on the first load (see screenshot)
What’s likely happening is your on page workflow is executing before your component is fully rendered, therefore it runs nothing. The delay ensures it has time to render.
It would be best to reorganize your workflows and have your component workflows trigger on mount.
Not that I’m aware of. I’m using the free tier of Supabase for this project, and I haven’t configured anything – it’s all default out-of-the-box settings.
I don’t think either of the issues you’ve described are bugs, more-so the way things are setup.
I’d have to take a deep look at how you’ve set things up, but you likely have other dependencies required for the workflows that aren’t being loaded in the correct order, causing things to look like they’re not firing, when they actually are.
I can’t tell if you’re trying to help, but I assume you are doing your best to guide me in resolving this.
Consistently, I have had the experience with the on mounted lifecycle event not firing properly.
I’m not aware of these dependencies you speak of. If you have an idea of what sort of dependencies I should look into, especially if there is something specific, that would be more helpful.
As far as I know, WeWeb doesn’t provide access to “dependencies” as I know them in a traditional coding environment. The “No-Code” aspect is supposed to abstract from that level of detail/control.
So, I’m using everything out of the box.
Thanks for giving your best effort; however little or as much as you can is appreciated.
@Vi56 if you have any other ideas, I’m happy to look into them as well.
Still waiting to hear back from the WeWeb folks, but they seem to be sleeping on this one.
Try to move your workflows to On component created event of the initialized components. From what I can see you are trying to execute workflow in non-existing component and from your video I can’t tell if it is on the page.
I’m sorry, I don’t really know the exact solution, but it could be that there’s an issue with how the page is initializing the workflows on the first load. Sometimes, if certain scripts or resources haven’t fully loaded, workflows tied to the “On page load” event might not trigger as expected.