Hi everyone,
I’m using a markdown block with Handlebars to display user-specific data (like their name) on the homepage. I also have a form with a workflow that updates this user data and then redirects back to the homepage.
The problem: after the update, the homepage still shows the old values unless I log out and log back in. It seems like the session or user context isn’t being refreshed.
Question:
How can I force a session/user data refresh after the update so the markdown block shows the updated values immediately?
Any tips or workaround would be appreciated!
Thanks in advance.
Have you tried refreshing the page? Does refreshing the page in your browser update this value?
Hello, no, only logout/login refresh the session value.
Can you try to reproduce your issue in this environment?
https://a_f3mpqavsiht.v7.demo.nocobase.com/admin/ttae4sfeiq0
Hello thank you for the link, this is how to reproduce:
- GOTO: https://a_f3mpqavsiht.v7.demo.nocobase.com/admin/ddfvafsxx45
- Notice user phone is “123456789”
- Submit new company
- Notice that the workflow ‘Post-action event’ attached to the submit button changes the user phone to “00000000”
- Refresh the page, the phone is still “123456789”
- Logout and login again and you will notice now the session is updated.
PS: If I change the phone from my profile the session refresh correctly.
PS2: Any field attached to the session has the same problem.