Goal: Ensure updated user attributes (metadata) from the Retool API are refreshed within the same app session without requiring a page reload.
Use Case: Implement CRUD operations with user_attribute
from the Retool API to create "custom filters" for users, allowing them to select columns to display. Each user should have their own custom column settings saved in the metadata.
Steps:
- Utilize the Retool API to update user attributes.
- After updating, if I want to read the user attribute using
{{ current_user.metadata.taskColumns }}
, the metadata does not refresh until I reload the page.
Details:
- Is there a way to refresh the metadata with a script like
metadata.refresh()
or another method to ensure the updated attributes are immediately available?
Thanks a lot for your help!