-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
Slowness when opening stories list #667
Comments
@fabioatcorreia which version are you upgrading from? is this happening on both android and ios or just android? |
I'm upgrading from version It also happens on iOS. Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-01-20.at.15.26.17.mp4 |
Just looked a bit through the code and it seems to be because the list is not virtualized. |
I'm not familiar with it, but it seems like the best approach would be to use |
yeah thats probably true, flatlist would be the obvious choice but it didn't seem to have issues in my testing so thats the only reason I didn't initially do that. I will need to reproduce this slowness in the example project to validate that it actually improves with a flatlist I can take a look at this soon. |
@fabioatcorreia 8.5.2 is out now which should fix the slowness :) |
Describe the bug
After upgrading @storybook/react-native to the latest version (8.4.4), the time to open the list of stories has degraded (takes around 2 seconds).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The stories list should be visible without a major delay.
Screenshots
storybook.native.slow.webm
Additional context
The project has quite a bit of stories files: 234.
The text was updated successfully, but these errors were encountered: