-
Hi there, I'm attempting to update my project to the Pre-update, I did the following: // __layout.svelte
<script context="module">
export const APP = Symbol();
</script>
<script>
const completedSvelteUpgrade = writable(false);
setContext(APP, {
completedSvelteUpgrade
});
</script And then in my pages, I imported and called <script>
// routes/index.svelte
import { APP } from "./__layout.svelte";
const { completedSvelteUpgrade } = getContext(APP);
</script> This no longer works, though, as an error saying the Can I still use this feature? Is there a different way that I should be handling this? |
Beta Was this translation helpful? Give feedback.
Answered by
AlanBreck
Sep 1, 2022
Replies: 1 comment
-
Updating to |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AlanBreck
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updating to
1.0.0-next.406
resolved my issue.