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

Investigate / document issues with rememberBreakpoint and exporting #318

Open
bitspittle opened this issue Sep 15, 2023 · 1 comment
Open
Labels
process Something that needs to be done but may not be user visible
Milestone

Comments

@bitspittle
Copy link
Collaborator

If you use ComponentStyle + breakpoints in your Kobweb project, you should get a clean responsive design when you open your page either using mobile or desktop.

Instead, if you rely on rememberBreakpoints too much, what can happen is your site exports with a desktop-sized width, generates such a layout, and then if you load the site on mobile, you'll get a "desktop" snapshot until the JS finishes loading, kicking in, and rerendering the site.

I need to look into this to 1) verify this is happening and 2) find a better way to communicate this to users (maybe via the README and code docs?)

@bitspittle bitspittle added the process Something that needs to be done but may not be user visible label Sep 15, 2023
@bitspittle bitspittle added this to the 1.0 milestone Sep 15, 2023
@bitspittle
Copy link
Collaborator Author

bitspittle commented Sep 15, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
process Something that needs to be done but may not be user visible
Projects
None yet
Development

No branches or pull requests

1 participant