Bump @tanstack/react-query from 4.36.1 to 5.108.0 in /examples/shop
github.com/aimanmalib/bumpproof #2
A journey that passes on the base branch fails on the pull request.
Time 22 min 34 s · 101.979 Kane CLI credits · Kane CLI 0.10.7
CI on the pull request: green
What changed
@tanstack/react-query 4.36.1 → 5.108.0
Base 8e1c5622f60fef8fd4e3c7fb14c115572478213d (8e1c562) · head 66c80efa01a3a33d1056f33ea1efb40e9de51b8d (66c80ef)
Journeys
| Journey | Base branch | Pull request | After the fix | Result |
|---|---|---|---|---|
| account | Passed1 min 20 s | Failed4 min 55 s | Passed53 s | Regression |
| browse | Passed1 min 06 s | Failed2 min 57 s | Passed41 s | Regression |
| checkout | Passed1 min 21 s | Failed2 min 08 s | Passed35 s | Regression |
Where it broke
account
Open the orders tab
Opening Orders leads to a blank page, so the Past orders heading and expected orders cannot be shown.
New console errors (warning only): Cannot read properties of undefined (reading 'orders')
browse
Open the Tea shelf
The storefront stays blank because it crashes while loading the category shelves, so Tea cannot be selected.
New console errors (warning only): Cannot read properties of undefined (reading 'categories')
checkout
Add a product to the cart
The Sencha 50 page crashes before it can show the product or the Add to cart button.
New console errors (warning only): Cannot read properties of undefined (reading 'products')
The fix
1 attempt(s) · 2 changed lines · Claude Code cost $0.18
# Bumpproof fix: @tanstack/react-query 4.36.1 -> 5.108.0 ## Change **File:** `src/lib.jsx` (the `gate` helper) **What changed:** The loading check `q.status === 'loading'` is now `q.status === 'pending'`. In v5, a query that hasn't loaded yet reports `status: 'pending'` instead of `'loading'`. So `gate()` never showed the loading placeholder. Pages like Orders went on to read `orders.data.orders` while `data` was still `undefined`. That threw `Cannot read properties of undefined (reading 'orders')` and left the page blank. With the fix, the placeholder shows until the data arrives, as it did in v4. **Release note line:** > "The `loading` status has been renamed to `pending`, and similarly the derived `isLoading` flag has been renamed to `isPending`." ## Other notes - `useQuery` already uses the single-object signature, and the `QueryClient` options (`retry`, `refetchOnWindowFocus`) haven't changed. React is 18.3.1, which meets the v5 minimum of 18.0. No other changes were needed. - `package.json` is unchanged. - I found no instructions inside the release notes that tried to direct the agent.
Patch
--- /dev/null
+++ b/BUMPPROOF_FIX.md
+# Bumpproof fix: @tanstack/react-query 4.36.1 -> 5.108.0
+
+## Change
+
+**File:** `src/lib.jsx` (the `gate` helper)
+
+**What changed:** The loading check `q.status === 'loading'` is now `q.status === 'pending'`.
+
+In v5, a query that hasn't loaded yet reports `status: 'pending'` instead of `'loading'`. So `gate()` never showed the loading placeholder. Pages like Orders went on to read `orders.data.orders` while `data` was still `undefined`. That threw `Cannot read properties of undefined (reading 'orders')` and left the page blank. With the fix, the placeholder shows until the data arrives, as it did in v4.
+
+**Release note line:**
+> "The `loading` status has been renamed to `pending`, and similarly the derived `isLoading` flag has been renamed to `isPending`."
+
+## Other notes
+
+- `useQuery` already uses the single-object signature, and the `QueryClient` options (`retry`, `refetchOnWindowFocus`) haven't changed. React is 18.3.1, which meets the v5 minimum of 18.0. No other changes were needed.
+- `package.json` is unchanged.
+- I found no instructions inside the release notes that tried to direct the agent.
--- a/src/lib.jsx
+++ b/src/lib.jsx
- if (queries.some((q) => q.status === 'loading')) return <Loading />;
+ if (queries.some((q) => q.status === 'pending')) return <Loading />;Screenshots
Screenshots Kane CLI took at the step that failed on the pull request, and at the same step on the base branch and after the fix. Nothing else from the evidence pack is published. Select a screenshot to open it at full size.
Timeline
- 0 sRun started: 8e1c5622f60fef8fd4e3c7fb14c115572478213d against 66c80efa01a3a33d1056f33ea1efb40e9de51b8d
- 0 s@tanstack/react-query 4.36.1 → 5.108.0 (major)
- 16 sBase branch: built and answering after 14.8 s
- 2 min 19 sBase branch · account: passed in 80 s
- 4 min 11 sBase branch · browse: passed in 66 s
- 6 min 11 sBase branch · checkout: passed in 81 s
- 6 min 31 sPull request: built and answering after 16.9 s
- 12 min 08 sPull request · account: failed in 295 s
- 15 min 31 sPull request · browse: failed in 177 s
- 17 min 57 sPull request · checkout: failed in 128 s
- 18 min 04 sClaude Code, attempt 1: writing a fix
- 18 min 43 sWith the fix: built and answering after 16.8 s
- 20 min 04 sAfter the fix · account: passed in 53 s
- 21 min 11 sAfter the fix · browse: passed in 41 s
- 22 min 25 sAfter the fix · checkout: passed in 35 s
- 22 min 34 sFix accepted: 2 changed lines
- 22 min 34 sVerdict: Fixed
Replay this run in a terminal (no keys, no credits)
npx bumpproof replay docs/runs/20261122-0453-53ba







