From 610db737caa085c967847d5aec622436dc49934b Mon Sep 17 00:00:00 2001 From: pushkin Date: Wed, 18 Nov 2020 15:49:51 +0100 Subject: [PATCH] Update 03-run-time.md --- site/content/docs/03-run-time.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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