generated from Luis/nextjs-python-web-template
Added a lot of fixes #73
@@ -56,6 +56,7 @@ const SequenceDiagram = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!loadingEventMessages && hasData) {
|
if (!loadingEventMessages && hasData) {
|
||||||
|
// check for the absence of this attribute to render the diagram
|
||||||
if (!mermaidRef.current.getAttribute("data-processed")) {
|
if (!mermaidRef.current.getAttribute("data-processed")) {
|
||||||
mermaid.initialize({
|
mermaid.initialize({
|
||||||
startOnLoad: false,
|
startOnLoad: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user