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

Search Functionality Causing Full Page Reload and React Query Cache Invalidation #454

Closed
jrhoads opened this issue Feb 6, 2025 · 1 comment
Assignees

Comments

@jrhoads
Copy link
Contributor

jrhoads commented Feb 6, 2025

Description

When performing a search in commons, a full page reload occurs, which not only disrupts the user experience but also clears the React Query cache, forcing unnecessary re-fetching of data.

Detailed Problem

  • Submitting the search form triggers a full page reload
  • Page refresh completely resets React Query cache
  • Cached data is discarded, leading to redundant API calls
  • Performance and user experience are negatively impacted

Expected Behavior

  • Search should be performed client-side
  • React Query cache should be preserved
  • Results should update dynamically without page reload
  • Minimal network requests and optimal data fetching

Reproduction Steps

  1. Perform initial data fetch (populates React Query cache)
  2. Enter search query
  3. Submit search form
@jrhoads
Copy link
Contributor Author

jrhoads commented Feb 7, 2025

Closed aith #455

@jrhoads jrhoads closed this as completed Feb 7, 2025
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

No branches or pull requests

1 participant