Skip to content

Conversation

ArnavPuri
Copy link
Contributor

Description

The reset button was not working as expected because of using useMemo to build columns. One of the possible solutions was to add difficultyCount as a dependency of useMemo but it would mean that columns will be rendered every time we check a row.

So to avoid unnecessary re-renders I created a new state variable and made that a dependency of useMemo.

Resolves #121

Copy link
Owner

@seanprashad seanprashad left a comment

Choose a reason for hiding this comment

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

Thank you very much for fixing this so quickly @ArnavPuri - much appreciated!

@seanprashad seanprashad merged commit 22c1e00 into seanprashad:master Oct 22, 2021
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.

Clicking "Reset Button" doesn't uncheck boxes and hide patterns
2 participants