Repository navigation
Bind the frontend error-state retry callback - #638
Merged
addyosmani merged 1 commit intoOct 10, 2026
Merged
Conversation
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
addyosmani
approved these changes
Oct 10, 2026
addyosmani
left a comment
Owner
There was a problem hiding this comment.
praise: right, refetch was never defined in the sample, so the error branch threw a ReferenceError. One identifier, correct fix. Merging.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and change
TaskListContainerpassesrefetchintoErrorState, but never binds it fromuseTasks(). The error path throws aReferenceErrorwhile rendering, so the retry UI cannot appear.Bind the callback alongside the existing hook result fields. The loading, empty and populated branches stay unchanged.
Reproduction and controls
I extracted and transpiled the exact container example and mounted it with React 19.2.0, ReactDOM 19.2.0 and jsdom. The custom hook and presentation components were supplied at their existing boundaries; the hook returns the fields shown in the example plus its retry callback.
Before: the error-state control fails with
refetch is not defined; the other three branches pass. After: all four pass, and clicking retry calls the hook callback exactly once. Reverting the binding reproduces the failure.This is a DOM runtime check, not a browser-engine or paid model behavior evaluation. No runtime dependency was added upstream.
Repository gates
Node 24.19.0 on macOS: all existing 173 tests passed with no skips; all five validators passed; routing passed 141 checks with 89/89 rank-one positives at the unchanged 95% floor. Bash cache and ignore controls and the session-start payload passed. The description and trigger cases are unchanged, and the rejection ledger has no prior entry for this example. No open PR touches this skill.
Linux/Windows and plugin-install checks are left to hosted CI; they are not claimed as locally run. Existing PRs from this contributor currently require maintainer workflow approval.
AI assistance: OpenAI Codex / GPT-6 was used for investigation and the patch.