Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4666662f4f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (state.key === normalizedKey) { | ||
| return |
There was a problem hiding this comment.
Retry unchanged image sets after preload failures
When every window.Image() preload fails once (for example because the remote host briefly times out), setState still records state.key = normalizedKey. This early return then skips all future preload attempts for the same images prop, so a rerender of the same search result stays stuck in the empty state and shows No images found until the component is remounted or the query changes. That makes transient image/CDN failures permanent for the lifetime of the message.
Useful? React with 👍 / 👎.
Summary
Validation