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

Error: Multiple instances of <Root> found when using with Storybook #48

Open
RNm-dove opened this issue Mar 3, 2025 · 2 comments
Open
Labels
3rd party tools Support or bugfixes for 3rd party tools

Comments

@RNm-dove
Copy link

RNm-dove commented Mar 3, 2025

Description:
When using this library with Storybook, an error occurs:
Error: Multiple instances of <Root> found!

Expected Behavior

Storybook should work without this error.

Steps to Reproduce

  1. Clone the repository:
    git clone https://github.com/RNm-dove/react-call-storybook-bug
    cd react-call-storybook-bug
  2. Install dependencies:
    npm install
  3. Start Storybook:
    npm run storybook
  4. The error appears on the screen.

Reproduction Repository

https://github.com/RNm-dove/react-call-storybook-bug

Screen Shot

Image

@desko27 desko27 added the 3rd party tools Support or bugfixes for 3rd party tools label Mar 3, 2025
@RNm-dove
Copy link
Author

RNm-dove commented Mar 7, 2025

@desko27

Is there any particular reason for restricting multiple Root definitions?
Is it possible to provide an additional Root for use cases like Storybook, where multiple Roots are needed?

@desko27
Copy link
Owner

desko27 commented Mar 11, 2025

Hi @RNm-dove!

Thanks for taking the time for such a complete report 👌🏻

I got an idea for this, I'll give it a try as soon as I get some free time.

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd party tools Support or bugfixes for 3rd party tools
Projects
None yet
Development

No branches or pull requests

2 participants