You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/svelte.dev/content/docs/svelte/98-reference/.generated/shared-errors.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,14 @@ Certain lifecycle methods can only be used during component initialisation. To f
60
60
<button onclick={handleClick}>click me</button>
61
61
```
62
62
63
+
### missing_context
64
+
65
+
```
66
+
Context was not set in a parent component
67
+
```
68
+
69
+
The [`createContext()`](svelte#createContext) utility returns a `[get, set]` pair of functions. `get` will throw an error if `set` was not used to set the context in a parent component.
Copy file name to clipboardExpand all lines: apps/svelte.dev/content/docs/svelte/98-reference/30-runtime-errors.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -358,6 +358,14 @@ Certain lifecycle methods can only be used during component initialisation. To f
358
358
<button onclick={handleClick}>click me</button>
359
359
```
360
360
361
+
### missing_context
362
+
363
+
```
364
+
Context was not set in a parent component
365
+
```
366
+
367
+
The [`createContext()`](svelte#createContext) utility returns a `[get, set]` pair of functions. `get` will throw an error if `set` was not used to set the context in a parent component.
0 commit comments