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

Improve Caching #28

Open
hipstersmoothie opened this issue Jun 19, 2024 · 2 comments
Open

Improve Caching #28

hipstersmoothie opened this issue Jun 19, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@hipstersmoothie
Copy link

I noticed that when I restart my app none of the styles have been loaded/generated. Every time I restart the app I see the whole app unstyled.

I was talking with @nmn and he said that stylex relies heavily on caching. To me it seems like there is something that could be improved here.

Here is me restarting the dev server and all the styles getting blown away

CleanShot.2024-06-19.at.11.01.29.mp4

Here is an example of styles flashing on refresh

CleanShot.2024-06-19.at.11.02.08.mp4
@nmn
Copy link

nmn commented Jun 30, 2024

I think the challenge is that both file transformation and the metadata for each file needs to be cached. This has been challenging with most bundlers, but there should be some APIs to do so.

@nonzzz
Copy link
Owner

nonzzz commented Jun 30, 2024

I've been busy at this month. I'll take some time at next week to find a way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants