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
Preferring options.context makes sense, I think, but I haven't thought through all of the implications of that. For now, to make sure parent_component isn't set, you can just avoid synchronously instantiating a component inside another one. Adding a setTimeout around the new GetContext makes this behave in the way you want.
Describe the bug
Some contexts are unexplicably removed from the map object when passing it to
new Component()
.From #6447 it seems like this was it's intended usage.
Reproduction
https://svelte.dev/repl/178ba9c6c46a43b9bcd8376262f1d021?version=3.42.6.
(note: In production, I would not render in a normal div, but rather in a shadow DOM)
Logs
No response
System Info
Severity
blocking all usage of svelte;
after this comment, it's just an annoyance (and pitfall)
The text was updated successfully, but these errors were encountered: