onValidated reference event / tracking reference status #1889
-
Hi, in our project we've been heavily using MST & the references which they provide and enjoy them quite a bit 😄 However, we found the need to track references in order to find models that are not referenced too - since these are 'unused' and we'd like to provide automated cleanups / warnings for our users. Since MST should already be tracking references, I thought this should conceptually be reasonably simple. We've tried some approaches, but we're not convinced on them:
Any thoughts on adding an event like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @ruudandriessen! I have not found a one-size-fits-all solution to this I'm 100% satisfied with myself, but I have opted for the 2nd alternative you outline when building a "Do you want to remove these unused objects?"-type user action. It's all complicated further by MST lazily evaluating references (which is almost always desirable, but unfortunate in this case), so if all your references are not currently observed the other approaches you outline, or even a hypothetical |
Beta Was this translation helpful? Give feedback.
Hi @ruudandriessen!
I have not found a one-size-fits-all solution to this I'm 100% satisfied with myself, but I have opted for the 2nd alternative you outline when building a "Do you want to remove these unused objects?"-type user action.
It's all complicated further by MST lazily evaluating references (which is almost always desirable, but unfortunate in this case), so if all your references are not currently observed the other approaches you outline, or even a hypothetical
onValidated
, would most likely not be enough.