When creating a custom state for an element, is there a performance difference between the custom state being the object itself or the object’s unique ID ?
For instance, if we need to associate a User to a Group (in order to reuse that User later on somehow), is there a difference in performance in associating the actual User object and associating the User’s unique ID and do a “search for User by unique ID” later ?
I imagine that somehow, the rendering might be impacted by the size of the information “stored” in a visual element, so the question would probably be about the tradeoff between the impact it has on the rendering and the computation time necessary for the “search for XXX by unique ID”.
Thanks for your help