First off, I filed a bug report with a lot more details so hopefully that is getting picked up soon but in the meantime I’m wondering if other people have similar issues…
On page load I have a condition that checks if the current user’s ‘was_welcomed’ = ‘no’
If the was_welcomed field on the user is no, an onboarding group is shown. At the end of it, the field is changed to ‘yes’. This works fine and the value is updated in the database.
I noticed during user testing that people navigate away from the dashboard page to the profile page. When they return to the dashboard (there is a back button, but also through the browser back button) the onboarding popup was loaded again.
Upon inspection, the condition reads that the was_welcomed field on the user was still ‘no’. Another field that should have had a value is also seen as empty.
When I scroll down the current users fields, the correct value is shown. So the condition says no, where the actual field on the user in the debugger shows yes.
When I refresh the dashboard page, the popup is not loaded. Only when the user navigates away from the page and returns to it.
Is there a difference on loading a page coming from another page and doing a refresh of the current page? (a simple refresh, not ctrl-F5) Is the condition looking at a cached version of the user?