question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Updating relations prop

See original GitHub issue

I noticed that updating the relations prop doesn’t actually trigger any updates in componentWillReceiveProps in the ArcherElement component because of the relationsWithStringifiedLabels equality check that uses the label on the relations… so not sure how exactly that should be fixed right now, I suppose it should just check if there is any relation added or removed and then run the appropriate update?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
pierpocommented, Dec 5, 2018

So indeed there is a mistake in the relationsWithStringifiedLabels, it only compares labels right now (which was not intended).

But even fixing it raises another issue: when you change a relation from one arrow to point to another element, the previous relation is not removed.

I have a solution for this, I’ll try to implement it asap!

2reactions
pierpocommented, Dec 5, 2018

Thanks @robinvenneman for handling this. I’ll have to dive into this and think this through as well. Sorry about all these issues 😄

As always, your PR is very welcome 😊

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to update props relationships? - Laracasts
Please help, how to update a props relation? I'm trying to update fight status of the game, but it's not updating in DOM?...
Read more >
How can I update relationship property in spring-data-neo4j?
I've built a project that uses spring-data and succeeded to create entities, add relationships with properties.
Read more >
How can I update relationship property from another csv source?
Hi,. I am relatively new to Neo4j and would like to know if the initial set properties of the relationships can be updated...
Read more >
Create, edit or delete a relationship - Microsoft Support
The Edit Relationships dialog box appears. Select the Enforce Referential Integrity check box. Select either the Cascade Update Related Fields or the Cascade ......
Read more >
Refresh relations property? : r/Notion - Reddit
Hi all - when I create a new entry in a database, it doesn't show up in relations fields looking at that database...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found