code-forge-io / code-forge-io/remix-client-cache

InvalidCache with wildcards

Open
#2 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
247
Forks
3
PR merge metrics
No merged PRs in 30d

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!

Contributor guide

No contributing guide indexed for this repository

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.