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
So, for the IDs we generate, we should make sure they are unique. Not sure what the performance penalty will be or how exactly to do it, but it shouldn't be hard, in theory.
The text was updated successfully, but these errors were encountered:
I think this is a great idea, but you're right... we should keep an eye on performance.
One approach could be to query the DOM for each ID we generate, to make sure nothing is there already. This seems like it could cause a performance hit if we're generating a lot of IDs.
Maybe there's a way to pull all the the IDs in the DOM with one query, check against that list with each new generated ID, and add new generated IDs to the list as we go. Seems like that might be lighter weight.
So, for the IDs we generate, we should make sure they are unique. Not sure what the performance penalty will be or how exactly to do it, but it shouldn't be hard, in theory.
The text was updated successfully, but these errors were encountered: