code-forge-io / code-forge-io/remix-client-cache
InvalidCache with wildcards
- Ngôn ngữ chính
- TypeScript
- Star
- 247
- Fork
- 3
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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!
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- frontend
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100