skttl
04/06/2024, 12:26 PMimport { UMB_USER_WORKSPACE_CONTEXT } from './user-workspace.context-token.js';
Warren Buckley
04/07/2024, 5:12 PMWarren Buckley
04/07/2024, 5:13 PMWarren Buckley
04/07/2024, 5:23 PMimport { UMB_WORKSPACE_CONTEXT, UmbWorkspaceContextInterface } from "@umbraco-cms/backoffice/workspace";
ie from a package as such, where the one you want seems to be internal and not published as part of a package from what I understand.
So you can't reference the context UMB_USER_WORKSPACE_CONTEXT
May be a context that got overlooked to be made available I am guessing ?!
I am sure the friendly crew @Jacob Overgaard or @Niels Lyngsø can advise.Warren Buckley
04/07/2024, 5:24 PMWarren Buckley
04/07/2024, 5:27 PMNiels Lyngsø
04/08/2024, 6:28 AMimport { UMB_USER_WORKSPACE_CONTEXT } from '@umbraco-cms/backoffice/user'
when the tokens gets exported correctly.Markus Johansson
04/08/2024, 6:30 AMUmbElementMixin
? They are using the UmbContextConsumerController
to provide the "consume context" methodMarkus Johansson
04/08/2024, 6:30 AMconsumeContext<BaseType = unknown, ResultType extends BaseType = BaseType>(
alias: string | UmbContextToken<BaseType, ResultType>,
callback: UmbContextCallback<ResultType>,
): UmbContextConsumerController<BaseType, ResultType> {
return new UmbContextConsumerController(this, alias, callback);
}