A warning about using for in loops on the props after Attachments introduction. #15928
Closed
HighFunctioningSociopathSH
started this conversation in
General
Replies: 1 comment 4 replies
-
This should be an issue. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I ran into an issue where Attachments weren't working on my component. Then, after searching for the cause, I found out that "for in" loops don't iterate over the Symbols. Since I don't have much experience with Symbols, I didn't know this fact, I think there might be other developers who might not know this. It would be good to have a warning about it in the docs, since if you try to process the props through a "for in" loop, you will accidentally lose the Attachments.
Beta Was this translation helpful? Give feedback.
All reactions