Closed tdashworth closed 2 years ago
Does that code run at all the second time? If so, try using .logEvents(true) to debug what d3-graphviz does.
Thanks for the quick reply. Please see the below logs:
Rendering started.
Event 1 start 1 0
layoutStart 6 6
It was still like this after 5 minutes...
It's also worth noting that when it does load (in a new browser) I can modify and render the graph without a problem.
This is a successful run:
Rendering started.
Event 1 start 1 0
Event 2 layoutStart 1 1
Event 0 initEnd 86
Event 3 layoutEnd 1355 1442
Event 4 dataExtractEnd 19 1461
Event 5 dataProcessPass1End 7 1468
Event 6 dataProcessPass2End 3 1471
Event 7 dataProcessEnd 1 1472 prepare 30
Dot processed
Event 8 renderStart 0 1472
Event 9 renderEnd 24 1496
Event 13 end 1 1497
Render complete
I've now learnt clearing the cache and hard reloading does fix the issue.
I have always experimented with disabling the service worker and the use of worker (useWorker: false
) but neither resolved the issue.
This only seems to be an issue with debugging with Visual Studio. Running dotnet run
has no issues.
Hi,
I am using this library within a .NetCore Blazor WASM application. I have the following scripts loaded:
And this is the code I run every time the dot code or engine changes:
I am loading a big graph (62 vertices and 85 edges) which works the first time I debug the app via Visual Studio on a particular browser (when I changed browser it worked the first launch) but every restart after that the
dot
callback is never run.Any ideas would really help! Thanks