Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use responsive hooks #346

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Use responsive hooks #346

wants to merge 1 commit into from

Conversation

lukebrody
Copy link
Collaborator

@lukebrody lukebrody commented Sep 18, 2024

Screen.Recording.2024-09-17.at.7.12.47.PM.mp4

We should support laying out the page again when the window size changes.

  • Change the mobileLayout function to a useMobileLayout hook. Have it sync with the window size.
  • Refactor other layout functions to also be hooks.
  • Refactor the usage of these functions to conform to React hook rules.

@lukebrody lukebrody self-assigned this Sep 18, 2024
Base automatically changed from lb/3-image-ci to master September 18, 2024 06:25
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant