Sean Thorne
06/27/2024, 2:41 PMts
@state()
private currentUserName?: string;
constructor() {
super();
this.consumeContext(UMB_CURRENT_USER_CONTEXT, (context) => {
this.observe(
context.currentUser,
(currentUser) => {
this.currentUserName = currentUser?.name;
},
'umbCurrentUserObserver'
)
});
// removed for brevity
No matter what I do - the username is null 😦