react-component / react-component/image
Issue with preview and fallback
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 213
- Forks
- 124
- Avg merge
- 47m
- Merged PRs (30d)
- 1
Description
Hi,
We have got a problem with preview being unavailable when 'src' is wrong and 'fallback' is used.
We found your example here but it does not seems to work :
https://github.com/react-component/image/blob/d78487df5467a9ed00a9f7b51be33d1298e7e1b7/docs/examples/fallback.tsx
Here is a reproducer :
https://codesandbox.io/s/polished-leaf-svmdt?file=/src/App.js:360-371
Thanks in advance for clarifications about misuse on our side or bug discovery.
Yours faithfully,
LCDP
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing docs/examples/fallback.tsx with the linked CodeSandbox reproducer, then trace the preview and fallback behavior for an invalid src. Confirm the expected behavior with the issue's example and reproducer; done means preview remains available when fallback is used with a wrong src.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100