[docs] fix typo in Context API tutorial ()

pull/7070/head
Maxi Ferreira 3 years ago committed by GitHub
parent 6f2ebaa76d
commit 72d40e99b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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, {

Loading…
Cancel
Save