typo setContext should be getContext

pull/13901/head
plgingras88 2 years ago committed by GitHub
parent 1ee2ac4d05
commit 48323519ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -82,7 +82,7 @@ Context is not inherently reactive. If you need reactive values in context then
<script>
import { setContext } from 'svelte';
const value = setContext('counter');
const value = getContext('counter');
</script>
<p>Count is {value.count}</p>

Loading…
Cancel
Save