We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f060a7d commit 4979545Copy full SHA for 4979545
packages/notion-to-jsx/src/components/Renderer/components/Image/Image.tsx
@@ -1,4 +1,4 @@
1
-import React, { useState, useEffect } from 'react';
+import React, { useState } from 'react';
2
import { MemoizedRichText } from '../MemoizedComponents';
3
import {
4
imageContainer,
@@ -74,10 +74,6 @@ const Image: React.FC<ImageProps> = ({
74
}) => {
75
const [isLoaded, setIsLoaded] = useState(false);
76
77
- useEffect(() => {
78
- setIsLoaded(false);
79
- }, [src]);
80
-
81
return (
82
<div className={imageContainer}>
83
<div
0 commit comments