Yeah, it might seem as so. But it’s not bound to that element, it’s dependent on the position. But it’s still okay to use them as long as you’re not doing manipulation on the array
@@JohnKomarnicki yea in most cases I try to use the id, if/when iterating an array of objects but sometimes that is not the case given the payload. But I have def seen weird behavior when trying to use something like append a checkbox to a data table and using that index as key
Apologize in advance for some spelling errros in a few of the slides, lol 😅
Awesome tips! thx for sharing!
interesting, didn't know using the index of the loop as the key was bad, always thought it was ok since it was gonna be unique
Yeah, it might seem as so. But it’s not bound to that element, it’s dependent on the position. But it’s still okay to use them as long as you’re not doing manipulation on the array
@@JohnKomarnicki yea in most cases I try to use the id, if/when iterating an array of objects but sometimes that is not the case given the payload. But I have def seen weird behavior when trying to use something like append a checkbox to a data table and using that index as key
at 6:12 if people is an array how did you access the 'age ' property without using index ?
Yeah you can't do it like that. And you can't do it how you said. You would do people.value.filter(person => person.age > 24)
Why all those typos? Attriubute, ojbect, componet geez also the font type is annoying
Unfortunately I’m not the best at spelling lol, and and premier pro does not do spell check with the method i used 🤷♂️