Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context unavailable in :then portion of #async block #3232

Closed
freb opened this issue Jul 12, 2019 · 2 comments
Closed

Context unavailable in :then portion of #async block #3232

freb opened this issue Jul 12, 2019 · 2 comments
Labels

Comments

@freb
Copy link

freb commented Jul 12, 2019

Components rendered inside an async/then block do not appear to have access to context variables.

Reproduced here: https://svelte.dev/repl/3ab4c93f92684325a70dcd5aee38dccf?version=3.6.7

I first noticed this while using svelte-routing, but narrowed down my issues to the absence of context. In my specific, wrapping the rest of the routing components (like Link) in a new Router instance solved the issue. But it appears that #async severs the propagation of context.

@Conduitry Conduitry added the bug label Jul 12, 2019
@orlov-vo
Copy link

It is duplicated: #2443

@Conduitry
Copy link
Member

Ah, so it is. Closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants