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 insertExpression throw #307

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

danieltroger
Copy link
Contributor

Mends part one of solidjs/solid#2030 by selectively walking around that specific case

Tested and actually fixes the issue. Working test reproduction with yarn patch here:
yarn && yarn dev

bug-test.zip

@danieltroger
Copy link
Contributor Author

@ryansolid did you have time to take a look here? :)

@ryansolid
Copy link
Owner

ryansolid commented Jan 22, 2024

Understanding this, this is guarding specifically around trying to insert the parent in itself. Like the check is one level deep. I suppose that is all we need, because it is fragments that are breaking this. Actually no that isn't the case. This would break again as soon as the parent doesn't equal the inserted element. We could trace up but I think this needs some more though. Need to get back to the basis of why we grabbing the parent this way. I'm a bit foggy its been like 6 years since I wrote this code.

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