Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make visible entries a set #905

Merged
merged 2 commits into from
Dec 3, 2021
Merged

Conversation

jbw0033
Copy link
Collaborator

@jbw0033 jbw0033 commented Dec 2, 2021

We should only allow a single instance of an entry in either of the
visible entry lists.

#872

We should only allow a single instance of an entry in either of the
visible entry lists.
Instead of directly using a Set, we want to make the
mutableStateListOf() behave like a Set by preventing it from adding
duplicate entries to ensure we still recompose when entries are added
and removed from the visible lists.
@ianhanniballake ianhanniballake merged commit 314c237 into google:main Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants