-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[Feature]: make v9 codesandbox demos fast #29435
Comments
I did some research on this and here are the results: why is current Browser codesandbox version so slow ?
potential solutions:
I created 2 container templates:
As we can see, loading them is almost instant. Can we use those for our demos? NO Why: Every DEMO* is dynamically generated via Switching to Container boxes is possible, unfortunately it would be much slower than Browser boxes because every demo would be brand new container, which means on every demo click:
Summary: To make our demos blazing fast we need to use combination of synced templates that use Codesandbox containers + ability to dynamically add files to them via TODO:
|
what about Stackblitz: ? Issues:
Web-containers are significantly faster than codesandbox containers ! Thus having "open in stackblitz" using web-container + vite under the hood provides quite good DX. I've implemented an MVP where folks can test it out
|
Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
Closing as implemented by:
|
Library
React Components / v9 (@fluentui/react-components)
Describe the feature that you would like added
ATM when opening docsite demos on codesandbox, loading time of codesandbox is quite long which provides subpar DX and also bad look on v9 library.
The loadtime tends to be more than 10 seconds ( depends on how many components are involved in particular demo. in general more components = slower start )
Have you discussed this feature with our team
@microsoft/fluentui-react-build
Additional context
No response
Validations
Priority
Normal
The text was updated successfully, but these errors were encountered: