Spot the bug in real code ยท hints and a worked solution with each
The Puzzle Page
- TypeScript/React ยท Cache InvalidationTanStack Query: Cache Invalidation MismatchYour mutation succeeds, the toast shows up, but the UI stays stale. You call invalidateQueries, the cache is there... but nothing happens. Turns out React Router params and database IDs don't play nice together.โโโ
- React/Ionic ยท Router NavigationThe IonRouterOutlet Redirect BugA subtle navigation bug where URL changes but the page stays the same in Ionic React apps. Can you spot why the redirect doesn't work as expected?โโโ