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 Suspense nodes not recognized #265

Merged
merged 6 commits into from
Sep 22, 2020
Merged

Fix Suspense nodes not recognized #265

merged 6 commits into from
Sep 22, 2020

Conversation

marvinhagemeister
Copy link
Member

This PR builds on the work in #260.

With these changes Suspense nodes are now correctly detected and displayed. Note that Preact versions <10.4.5 used a raw Component class as a wrapper which is visible here. Newer Preact versions use a Fragment for that which we'll filter out automatically.

There was one oddity in regards to the children of a Suspense vnode. They can't be cached as Preact modifies them outside the usual render cycle.

bz2 and others added 5 commits September 22, 2020 17:09
@changeset-bot
Copy link

changeset-bot bot commented Sep 22, 2020

🦋 Changeset is good to go

Latest commit: 8f361f3

We got this.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@marvinhagemeister marvinhagemeister merged commit 9ca5496 into master Sep 22, 2020
@marvinhagemeister marvinhagemeister deleted the suspense branch September 22, 2020 21:49
@github-actions github-actions bot mentioned this pull request Sep 22, 2020
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