feat: 💨

This commit is contained in:
codytseng 2025-08-12 10:50:27 +08:00
parent 9969ab2414
commit c6a5157fe7
10 changed files with 236 additions and 258 deletions

View file

@ -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)