Skip to content

Conversation

IMB11
Copy link
Member

@IMB11 IMB11 commented Aug 6, 2025

Closes DEV-215


This PR removes the usage of localStorage for persisting filter and "Sort By" dropdown states on the reports and moderation queue pages to resolve hydration mismatches.

The current implementation uses localStorage to persist filter and sort preferences across page reloads. However, this causes hydration issues where the server-side rendered content doesn't match the client-side state, similar to the issues we've experienced with the tremendous reward images not synchronizing properly with their corresponding cards.

The trade-off of losing filter persistence is acceptable given the stability improvements and the fact that these are administrative pages where consistent, predictable behavior is more important than convenience

@IMB11 IMB11 requested review from Minenash and coolbot100s August 6, 2025 12:34
@IMB11 IMB11 added bug Something isn't working web Relates to Modrinth.com web frontend frontend labels Aug 6, 2025
@IMB11 IMB11 enabled auto-merge August 6, 2025 15:24
Copy link
Collaborator

@coolbot100s coolbot100s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works!

@IMB11 IMB11 added this pull request to the merge queue Aug 8, 2025
Merged via the queue into main with commit 17c9e4a Aug 8, 2025
3 checks passed
@Prospector Prospector deleted the cal/dev-215 branch August 13, 2025 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend web Relates to Modrinth.com web frontend
Development

Successfully merging this pull request may close these issues.

2 participants