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

[fix] parent_component is undefined #6950

Closed
wants to merge 1 commit into from
Closed

[fix] parent_component is undefined #6950

wants to merge 1 commit into from

Conversation

zhmushan
Copy link

This bug was introduced in #5870
When a svelte file is imported into another svelte file that has been compiled into js, the parent_component will be undefined

@bluwy
Copy link
Member

bluwy commented Nov 22, 2021

Duplicate of #6646. Related issue #6584. I don't think the issue is fully justified yet for a fix to be made.

When a svelte file is imported into another svelte file that has been compiled into js, the parent_component will be undefined

If a svelte component is compiled to JS, it needs to me mounted with a target since both uncompiled and compiled Svelte components don't share the same scheduling loop. If I'm missing something, it would be great to explain your use case in the linked issue as well. Closing for now.

@bluwy bluwy closed this Nov 22, 2021
@zhmushan zhmushan deleted the fix_$$_undefined branch November 22, 2021 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants