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

Better inval #976

Merged
merged 6 commits into from
Jun 27, 2024
Merged

Better inval #976

merged 6 commits into from
Jun 27, 2024

Conversation

nmsimons
Copy link
Contributor

No description provided.

ChumpChief
ChumpChief previously approved these changes Jun 26, 2024
Copy link
Contributor

@ChumpChief ChumpChief left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love the improvements in item counter - brainstorm is still doing an invalidations-like approach in a few places which would be good to try to get away from if you can. Overall these are improvements though so I'm going ahead with approval, lmk if you'd like me to take another look later.

</div>
<Explanation />
</div>
);
}

export function ListGroup(props: { list: StringArray }): JSX.Element {
const [count, setCount] = useState(props.list.length);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit, it's nice to deconstruct the props at the top for less repetition

const { list } = props;

ChumpChief
ChumpChief previously approved these changes Jun 27, 2024
Copy link
Contributor

@ChumpChief ChumpChief left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvements :)

@nmsimons nmsimons merged commit 635817d into main Jun 27, 2024
2 checks passed
@nmsimons nmsimons deleted the better-inval branch June 27, 2024 20:13
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.

None yet

2 participants