Replies: 1 comment
-
Hey @1mike12 - I know this is a bit of an old thread, but does the section about reference invalidation in the docs help at all? Could you use
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I don't see much discussion anywhere on how to best manage removal of objects in a safe manner when there are lots of relations.
For instance, lets say we had a twitter clone. You would have an infinite scrolling list of tweets on the homescreen, then a map of users that a tweet will reference. We would want to delete tweets as we approach some threshold. We would also want to delete a user from the usermap if there's no tweets depending on it.
How do we know if a certain user node is not referenced anymore?
the only thing i found is this (with no answers) : https://spectrum.chat/mobx-state-tree/general/whats-the-best-way-to-track-references~29c39f2d-645d-43d7-9713-8aae7e6caad8
Are we supposed to do reference counting ourselves? That seems really error prone
Beta Was this translation helpful? Give feedback.
All reactions