Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

resolves #121 #122

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

Merged
seanprashad merged 1 commit into seanprashad:master from ArnavPuri:issue-#121-reset-button
Oct 22, 2021
Merged

Conversation

Copy link
Contributor

@ArnavPuri ArnavPuri commented Oct 21, 2021

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!

ArnavPuri reacted with laugh emoji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@seanprashad seanprashad seanprashad approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

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

AltStyle によって変換されたページ (->オリジナル) /