-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch routing graph display problem #23
Comments
@herosPan Did you find a solution? I think this is affecting me as well, but while developing using vue-cli serve and the live updates. |
@herosPan, plus one, did you resolve this one? If so, please, share the solution |
@Inzeppelin What's the problem you are having? We should probably open a ticket, the dev of this component seems pretty responsive. |
Hello there! Any solution found? I unfortunately have the same issue :/ |
@Agostin can you provide a testable repo example with the issue you are experiencing? beware that you have add/remove |
Is there any update about the solution in this case? My problem is similar. When I open the route where I use vue-cytoscape it works fine. However, if swtiching to another route and after back to the original route the vue-cytoscape is not able to plot the new nodes added. Is there some rule for reload the component related to vue-cytoscape? Thanks in advice. |
When using the cy element, the graphics cannot be loaded for the second time, and the graphics can only be loaded each time the page is refreshed.
preConfig(cytoscape) {
console.log("calling pre-config", config, elements);
// cytoscape: this is the cytoscape constructor
if (!cytoscape('core', 'cola')) {
cytoscape.use(cola);
}
},
async afterCreated() {
console.log("after created")
const cy = await this.$cytoscape.instance
cy.elements()
.layout({ name: "cola" })
.run();
}
The text was updated successfully, but these errors were encountered: