Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix/library manga grid infinite item size on category switch (#378)
* Revert "Fix/manga grid infinite item width (#376)" This reverts commit 48d559e This fixed (and worked as expected in dev mode) the very rare issue in dev mode (you had to load the page with a small screen size and increase the screen size before the grid and grid items were rendered) and caused it frequently in production build in the Library grid when switching categories * Fallback grid dimensions to current window dimensions Hook only run once, which could lead to an issue where the grid item width was calculated to be infinite (e.g. in SearchAll due to strict-mode behaviour in the dev mode). Could be that this is only an issue in dev mode due to react-strict mode. * Remove unused "height" grid dimensions property
- Loading branch information