From 71559596d4ad232bdd9b234898e927e03c0001c1 Mon Sep 17 00:00:00 2001 From: Maxi Ferreira Date: Mon, 27 Dec 2021 12:35:10 -0800 Subject: [PATCH] Updated Context Tutorial Fixed type in Context Tutorial --- site/content/tutorial/15-context/01-context-api/text.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/tutorial/15-context/01-context-api/text.md b/site/content/tutorial/15-context/01-context-api/text.md index 53695b7d69..efb6157652 100644 --- a/site/content/tutorial/15-context/01-context-api/text.md +++ b/site/content/tutorial/15-context/01-context-api/text.md @@ -11,7 +11,7 @@ There are two halves to the context API — `setContext` and `getContext`. If a Let's set the context first. In `Map.svelte`, import `setContext` from `svelte` and `key` from `mapbox.js` and call `setContext`: ```js -import { onMount, setContext } from 'svelte'; +import { onDestroy, setContext } from 'svelte'; import { mapbox, key } from './mapbox.js'; setContext(key, {