From 72d40e99b0337ff2ec0369b4c75a30acb3aa1e95 Mon Sep 17 00:00:00 2001 From: Maxi Ferreira <charca@gmail.com> Date: Mon, 27 Dec 2021 22:03:36 -0800 Subject: [PATCH] [docs] fix typo in Context API tutorial (#7063) --- 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, {