Updating relations prop
See original GitHub issueI 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:
- Created 5 years ago
- Comments:8 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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!
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 😊