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

ui/hooks: ScheduleRuleEditDialog #1792

Closed
wants to merge 1 commit into from

Conversation

Voninkazo
Copy link
Contributor

@Voninkazo Voninkazo commented Jul 23, 2021

  • Identified the issue which this PR solves.
  • Read the CONTRIBUTING document.
  • Code builds clean without any errors or warnings.
  • Added appropriate tests for any new functionality.
  • All new and existing tests passed.
  • Added comments in the code, where necessary.
  • Ran make check to catch common errors. Fixed any that came up.

Description:
Refactoring ScheduleRuleEditDialog class component to a functional.

Which issue(s) this PR fixes:
Part of #923


shouldComponentUpdate(nextProps, nextState) {
if (this.state !== nextState) return true
function shouldComponentUpdate(nextState) {
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldComponentUpdate is a React class lifecycle method. Take a look at the documentation here for some notes about how to implement it in a functional component

@dctalbot
Copy link
Contributor

Closing due to inactivity. Please feel free to reopen with the suggested changes if you are interested in continuing this work. Thanks!

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.

2 participants