W1W2W3W4W5W6W7W8

Lessons

Week 1Project setup and rate limiting0/24
Week 2Restaurants and menus with MySQL0/20
Week 3Authentication, orders and Kafka events0/20
Week 4Customer application with Expo0/18
Week 5Live order tracking and rider management0/14
Week 6Performance, caching and load testing0/14
Week 7Deployment and production operations0/14
Week 8Advanced features and project documentation0/8
ReviewQuiz questions that are due
ResourcesReading list, by week

Query invalidation

Marking cached queries stale after a write so they refetch, instead of editing the cache by hand. invalidateQueries with a key prefix refreshes every matching query that is on screen.

Minimal example

ts
void queryClient.invalidateQueries({ queryKey: ["orders"] });

Learn this concept

Lesson 4.8 · TanStack Query caching

Used in exercises

Exercise 4.16 · Cart screen Exercise 4.17 · Orders tab and order detail screens
Prerequisite conceptsQuery key