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 76e867b commit f5eb480Copy full SHA for f5eb480
package.json
@@ -8,7 +8,7 @@
8
"name": "Kalle Ott",
9
"url": "https://github.com/kaoDev/"
10
},
11
- "version": "1.0.0",
+ "version": "1.0.1",
12
"main": "dist/index.js",
13
"module": "dist/react-lazy-svg.esm.js",
14
"typings": "dist/index.d.ts",
src/index.tsx
@@ -173,7 +173,7 @@ export const Icon: FC<{ url: string } & React.SVGProps<SVGSVGElement>> = ({
173
}) => {
174
const { registerSVG } = useContext(spriteContext);
175
176
- if (typeof document !== 'undefined') {
+ if (typeof document === 'undefined') {
177
registerSVG(url);
178
} else {
179
useEffect(() => {
0 commit comments