Skip to content

Conversation

@gordonbrander
Copy link
Contributor

IDs enable efficient re-rendering of dynamic lists. However, if a model does not provide an ID, we should just generate one for the purpose of making the logic work. Those items will not get efficient re-rendering (they will be destroyed and re-created), but it will still work. This is the same tradeoff React makes.

IDs enable efficient re-rendering of dynamic lists. However, if a
model does not provide an ID, we should just generate one for the
purpose of making the logic work. Those items will not get efficient
re-rendering (they will be destroyed and re-created), but it will still
work. This is the same tradeoff React makes.
@gordonbrander gordonbrander requested a review from seefeldb June 18, 2024 23:06
@gordonbrander gordonbrander merged commit 366619b into main Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants