PR #58 specifically fixed the identifier problem for __docgenInfo, but it did not fix it for setting displayName or within the global collection object. This PR applies the same identifier change to fix these other two spots.
I also made a change to setDisplayName, that skips adding the displayName if we know that the identifier doesn't match the display name. In this case, it follows that the component must have already set displayName, and it didn't make sense to me that we should set the same property twice. This change isn't strictly necessary, so if you'd rather drop it, I don't mind.
Fixes #91.
PR #58 specifically fixed the identifier problem for
__docgenInfo
, but it did not fix it for settingdisplayName
or within the global collection object. This PR applies the same identifier change to fix these other two spots.I also made a change to
setDisplayName
, that skips adding thedisplayName
if we know that the identifier doesn't match the display name. In this case, it follows that the component must have already setdisplayName
, and it didn't make sense to me that we should set the same property twice. This change isn't strictly necessary, so if you'd rather drop it, I don't mind.