diff --git a/site/content/docs/03-run-time.md b/site/content/docs/03-run-time.md index 846e09d774..3c91a8de15 100644 --- a/site/content/docs/03-run-time.md +++ b/site/content/docs/03-run-time.md @@ -178,6 +178,26 @@ Retrieves the context that belongs to the closest parent component with the spec ``` +#### `hasContext` + +```js +hasContext(key: any) +``` + +--- + +Checks whether a given `key` has been set. Must be called during component initialisation. + +```sv + +``` + #### `createEventDispatcher` ```js