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

Disable "SSR" option in "useMediaQuery" #263

Merged
merged 1 commit into from
Mar 16, 2023
Merged

Disable "SSR" option in "useMediaQuery" #263

merged 1 commit into from
Mar 16, 2023

Conversation

schroda
Copy link
Collaborator

@schroda schroda commented Mar 16, 2023

"useMediaQuery" renders once with default values and only on the second render with the resolved values. (https://mui.com/material-ui/react-use-media-query/#client-side-only-rendering)

Thus, "lastPageNum" can potentially get initialized with the value for small/medium screens instead for large screens.

"useMediaQuery" renders once with default values and only on the second render with the resolved values.

Thus, "lastPageNum" can potentially get initialized with the value for small/medium screens instead for large screens.
@AriaMoradi AriaMoradi merged commit 8c129f2 into Suwayomi:master Mar 16, 2023
@schroda schroda deleted the fix/library_manga_grid_pagination_on_big_screens branch April 1, 2023 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants