Skip to content

Implement hash change watcher with cache invalidation - #82

Merged
ModelEarth merged 2 commits into
ModelEarth:mainfrom
shashank11yadav:main
Dec 11, 2025
Merged

ModelEarth merged 2 commits into
ModelEarth:mainfrom
shashank11yadav:main

Conversation

@shashank11yadav

Copy link
Copy Markdown
Contributor
  • Add previousFilterHash tracking to detect filter changes
  • Clear cache automatically when filters change to prevent stale data
  • Implement cache clearing in updateHash() for programmatic changes
  • Add handleHashChange() for browser back/forward navigation
  • Compare filter states before clearing to minimize unnecessary cache resets
  • Support all filter types: repo, sort, assignee, state, label, search

- Add previousFilterHash tracking to detect filter changes
- Clear cache automatically when filters change to prevent stale data
- Implement cache clearing in updateHash() for programmatic changes
- Add handleHashChange() for browser back/forward navigation
- Compare filter states before clearing to minimize unnecessary cache resets
- Support all filter types: repo, sort, assignee, state, label, search
- Update from btn-secondary to btn-primary for better visibility
@ModelEarth
ModelEarth merged commit de322a3 into ModelEarth:main Dec 11, 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

Successfully merging this pull request may close these issues.

2 participants