feat: 💨
This commit is contained in:
parent
9969ab2414
commit
c6a5157fe7
10 changed files with 236 additions and 258 deletions
|
|
@ -32,6 +32,14 @@ export default function Image({
|
|||
const [imageUrl, setImageUrl] = useState(url)
|
||||
const [tried, setTried] = useState(new Set())
|
||||
|
||||
useEffect(() => {
|
||||
setImageUrl(url)
|
||||
setIsLoading(true)
|
||||
setHasError(false)
|
||||
setDisplayBlurHash(true)
|
||||
setTried(new Set())
|
||||
}, [url])
|
||||
|
||||
useEffect(() => {
|
||||
if (blurHash) {
|
||||
const { numX, numY } = decodeBlurHashSize(blurHash)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue