Skip to content
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

Closed
herosPan opened this issue Jun 12, 2019 · 6 comments
Closed

Switch routing graph display problem #23

herosPan opened this issue Jun 12, 2019 · 6 comments

Comments

@herosPan
Copy link

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();
}

@bkuker
Copy link

bkuker commented Jun 19, 2019

@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.

@Inzeppelin
Copy link

@herosPan, plus one, did you resolve this one? If so, please, share the solution

@bkuker
Copy link

bkuker commented Jun 28, 2019

@Inzeppelin What's the problem you are having? We should probably open a ticket, the dev of this component seems pretty responsive.

@Agostin
Copy link

Agostin commented Jan 8, 2020

Hello there! Any solution found? I unfortunately have the same issue :/

@rcarcasses
Copy link
Owner

@Agostin can you provide a testable repo example with the issue you are experiencing? beware that you have add/remove cy-elements and change their keys in order to trigger an update, this is how vue works.

@mfigueredo
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants