databendlabs / bendsql

Databend Native Client
Apache License 2.0
49 stars 26 forks source link

fix: bind graph events after graph is ready #493

Closed Maricaya closed 1 week ago

Maricaya commented 1 week ago

The graph events like click:node weren’t firing on the first render because we were trying to bind them before the graph was ready. This PR fixes that by waiting until the graph is fully up and running before attaching the event listeners.

cc @sundy-li