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

Refine Timer and TimeAgo components (get rid of force update) #4580

Merged
merged 1 commit into from
Jan 23, 2020

Conversation

kravets-levko
Copy link
Collaborator

What type of PR is this? (check all applicable)

  • Refactor
  • Other

Description

forceUpdate is a sort of anti-pattern, but when we implemented these components we didn't have enough experience with React hooks and used a force update as workaround. This PR changes the implementation to be more clear and React-way.

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.

2 participants