mirror of https://github.com/sveltejs/svelte
fix: throw when `setContext` is called after an `await` during SSR (#18739)
Fixes #17233.pull/18755/head
parent
9d91a40faf
commit
4bf15ae6f3
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: throw `set_context_after_init` when `setContext` is called after an `await` during SSR
|
||||||
@ -1,7 +1,6 @@
|
|||||||
import { test } from '../../test';
|
import { test } from '../../test';
|
||||||
|
|
||||||
export default test({
|
export default test({
|
||||||
skip: true, // TODO it appears there might be an actual bug here; the promise isn't ever actually awaited in spite of being awaited in the component
|
|
||||||
mode: ['async'],
|
mode: ['async'],
|
||||||
error: 'lifecycle_outside_component'
|
error: 'set_context_after_init'
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in new issue