"Losing" custom_fields on user while navigating


#1

Hey guys,
I have the following problem:
I registered a custom field with user.

When I am on the front page (/) I have access to this field via:

Discourse.User.currentProp("custom_fields.my_custom_field")

Alright, now if I navigate to (for example) the user preferences page I have no longer access to this custom field => it is undefined.

Same thing seems to happen with the browser history plugin. Can access the field from the front page but not within the user preferences page, which also results in an unchecked checkbox even though it is clearly set to true when checking on the the front page.

Once the field “vanishes” I can no longer access it on the front page, need to reload the page and the field is available on the front page again.

Can someone help me out here?

Greetz,
Chris