question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Toolbar decorator remounts component when dismiss

See original GitHub issue

Describe the bug Story gets unmounted/remounted even when dismissing the pick of a choice in the toolbar addon

Screen Recording 2021-06-30 at 09 43 13 AM

To Reproduce

  • Create a new storybook instance
  • Add the code related to language selection as provided in the docs
  • Add a console.log in your component or story

System

Environment Info:

  System:
    OS: macOS 11.4
    CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
  Binaries:
    Node: 16.4.0 - ~/.nvm/versions/node/v16.4.0/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 7.18.1 - ~/.nvm/versions/node/v16.4.0/bin/npm
  Browsers:
    Chrome: 91.0.4472.114
    Firefox: 88.0.1
    Safari: 14.1.1

Additional context Probably related to #15416

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
shilmancommented, Jun 30, 2021

@IgorSzyporyn can you please take a quick look at this one? 🙏

0reactions
IgorSzyporyncommented, Jul 5, 2021

@y-nk

I have written you on discord also

Read more comments on GitHub >

github_iconTop Results From Across the Web

Decorator unmounted when switching stories #15416 - GitHub
We're looking to create a decorator which will hold a stateful object (our ... Toolbar decorator remounts component when dismiss #15429.
Read more >
React unmounts and remounts layout components using react ...
Can we see your layout component? Are you sure it unmounts/remounts or re-renders? If component unmounts - there should be some kind of ......
Read more >
Kendo Grid column unmounts/mounts child component on re ...
The issue is that any state change in the parent causes that child in the grid column to unmount re-mount. Try opening the...
Read more >
Remounting a component ? : r/reactjs - Reddit
Hello, I'm working on an app that uses react and react-router-v4. Is there a way to completely remount a component (which is called...
Read more >
Storybook on Twitter: "7.0 design is now in alpha! Small ...
Layout edge-to-edge Toolbar reorganized ✍️ 200 redrawn icons ... Toolbar for debugging CSS & alignment Remount selected story Zoom ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found