You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's a common mistake for people to assume that they just pass __key around, but the reality is that you should never ever use __key except when implementing a constructor or clone method.
Another common mistake is to assume that clone is something that can be used to duplicate a node. It's not. It should be considered a private method that is only called internally.
There is some relevant documentation about this $cloneWithProperties and various invariants but people keep running into this so we should add more docs.
The text was updated successfully, but these errors were encountered:
Description
It's a common mistake for people to assume that they just pass
__key
around, but the reality is that you should never ever use__key
except when implementing a constructor or clone method.Another common mistake is to assume that
clone
is something that can be used to duplicate a node. It's not. It should be considered a private method that is only called internally.There is some relevant documentation about this
$cloneWithProperties
and various invariants but people keep running into this so we should add more docs.The text was updated successfully, but these errors were encountered: