I'm building a small Vue app that dynamically updates a mermaid graph on user input.
vue-mermaid gets stuck whenever the node input cannot be parsed correctly (for example because a node contains unescaped double quotes). The current graph disappears- which is fine- but the whole component stops updating, whatever the next inputs are.
The only way I've found to solve the issue is to surround in a try-catch block the call to mermaid.init in the load method of vue-mermaid:
I'm failry inexperienced with Vue so I'm not sure if there is an obvious better way to solve this; or, if there isn't, maybe you want to integrate this in your source?
I'm building a small Vue app that dynamically updates a mermaid graph on user input.
vue-mermaid gets stuck whenever the node input cannot be parsed correctly (for example because a node contains unescaped double quotes). The current graph disappears- which is fine- but the whole component stops updating, whatever the next inputs are.
The only way I've found to solve the issue is to surround in a try-catch block the call to mermaid.init in the load method of vue-mermaid:
I'm failry inexperienced with Vue so I'm not sure if there is an obvious better way to solve this; or, if there isn't, maybe you want to integrate this in your source?
Thanks for the good work!