code-forge-io / code-forge-io/remix-client-cache
InvalidCache with wildcards
- Langage dominant
- TypeScript
- Étoiles
- 247
- Forks
- 3
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
If an user goes to `/books` and perform a query to `/books?query="harry potter"` both are cached. If user add to its favorites the book from the query. Then we need to invalidate both routes.
Since `/books` displays the favorites at the top.
It would be great to be able to invalidate the cache from a wildcard such as `invalidateCache("/books*")`
Great job btw!
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Start at the invalidateCache("/books*") entry point and inspect how cache keys for /books and /books?query="harry potter" are currently matched. Define completion as invalidating both the base route and matching query routes when a wildcard is supplied, while preserving normal invalidation behavior.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- typescript
- Domaine
- frontend
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100