-
Notifications
You must be signed in to change notification settings - Fork 97
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
Better inval #976
Conversation
There was a problem hiding this 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); |
There was a problem hiding this comment.
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;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvements :)
No description provided.