rename to passContextAliasMatches

This commit is contained in:
Niels Lyngsø
2024-01-05 15:08:32 +01:00
parent 8f5e48714b
commit 3b83142912
3 changed files with 4 additions and 4 deletions

View File

@@ -281,7 +281,7 @@ describe('UmbContextConsumer', () => {
provider.hostDisconnected();
},
);
localConsumer.exactMatch();
localConsumer.passContextAliasMatches();
localConsumer.hostConnected();
});
});

View File

@@ -59,10 +59,10 @@ export class UmbContextConsumer<BaseType = unknown, ResultType extends BaseType
/**
* @public
* @memberof UmbContextConsumer
* @description Continue for an exact match of both context alias, api alias and discriminator.
* @description Pass beyond any context aliases that matches this.
* The default behavior is to stop at first Context Alias match, this is to avoid receiving unforeseen descending contexts.
*/
public exactMatch() {
public passContextAliasMatches() {
this.#stopAtContextMatch = false;
}

View File

@@ -35,7 +35,7 @@ export class UmbBlockGridTypeWorkspaceViewSettingsElement extends UmbLitElement
},
'observeGridColumns',
);
}).exactMatch();
}).passContextAliasMatches();
this.consumeContext(UMB_PROPERTY_DATASET_CONTEXT, async (context) => {
this.#datasetContext = context;