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: Add a story root wrapper for Suspense (fix #677) #678

Merged
merged 2 commits into from
Feb 19, 2024
Merged

Conversation

hugoattal
Copy link
Collaborator

@hugoattal hugoattal commented Feb 8, 2024

Fixes #677

Description

Added a root to present Suspense failing if there are several root to a story.

Additional context

⚠️ I'm not quite sure why you would use a factory function for the last argument of the h() function...
I took the liberty of removing it, but if it was useful, I'll put it back!

ℹ️ The examples/vue3 project can't reproduce this error because it uses a global wrapper addWrapper(WrapperGlobal)


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

@hugoattal hugoattal self-assigned this Feb 8, 2024
Copy link

codesandbox bot commented Feb 8, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

stackblitz bot commented Feb 8, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

netlify bot commented Feb 8, 2024

Deploy Preview for histoire-examples-svelte3 ready!

Name Link
🔨 Latest commit 6820b14
🔍 Latest deploy log https://app.netlify.com/sites/histoire-examples-svelte3/deploys/65c4f16699b7f700084e0ee8
😎 Deploy Preview https://deploy-preview-678--histoire-examples-svelte3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Feb 8, 2024

Deploy Preview for histoire-site ready!

Name Link
🔨 Latest commit 6820b14
🔍 Latest deploy log https://app.netlify.com/sites/histoire-site/deploys/65c4f166778790000873b877
😎 Deploy Preview https://deploy-preview-678--histoire-site.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Feb 8, 2024

Deploy Preview for histoire-examples-vue3 ready!

Name Link
🔨 Latest commit 6820b14
🔍 Latest deploy log https://app.netlify.com/sites/histoire-examples-vue3/deploys/65c4f1669d26410008ed9efd
😎 Deploy Preview https://deploy-preview-678--histoire-examples-vue3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Feb 8, 2024

Deploy Preview for histoire-controls ready!

Name Link
🔨 Latest commit 6820b14
🔍 Latest deploy log https://app.netlify.com/sites/histoire-controls/deploys/65c4f1663845af00089ced87
😎 Deploy Preview https://deploy-preview-678--histoire-controls.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@hugoattal hugoattal requested a review from Akryum February 8, 2024 15:26
@Akryum Akryum merged commit c98417b into main Feb 19, 2024
25 checks passed
@Akryum Akryum deleted the fix/suspense-root branch February 19, 2024 02:06
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.

Suspense regression: Story now accept only one child
2 participants