storybookjs / frontpage

🌐 The website for storybook.js.org
https://storybook.js.org
MIT License
216 stars 119 forks source link

[Bug] When you open two web pages for comparison, only one frame can be selected. #693

Closed zhanghengxin closed 5 months ago

zhanghengxin commented 6 months ago

Describe the bug

A clear and concise description of what the bug is.

Steps to reproduce the behavior

open they: https://storybook.js.org/docs/get-started/web-components-vite https://storybook.js.org/docs/get-started/vue3-vite

I cant comparing.

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots and/or logs

If applicable, add screenshots and/or logs to help explain your problem.

Environment

Additional context

Add any other context about the problem here.

Move the sb-docs-selected-framework to sessionStorage.

kylegach commented 5 months ago

This is by design. The docs site should remember which renderer is selected. Moving it into session storage would only save for the session, so starting a new session would reset it back to the default, react.

If you wish to compare docs for multiple renderers, please use a private/incognito window or different browsers.