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 2e4b3e4 commit 87f7504Copy full SHA for 87f7504
src/components/EditorHeader/Modal/Share.jsx
@@ -77,14 +77,14 @@ export default function Share({ title, setModal }) {
77
await patch(gistId, SHARE_FILENAME, diagramToString());
78
}
79
} catch (e) {
80
- console.error(e);
81
setError(e);
82
} finally {
83
setLoading(false);
84
85
};
86
updateOrGenerateLink();
87
- }, [gistId, diagramToString, setGistId]);
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, []);
88
89
const copyLink = () => {
90
navigator.clipboard
0 commit comments