FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove extra dependencies to avoid dead loop of page re-rendering by enya-yx · Pull Request #588 · feathr-ai/feathr · GitHub

Remove extra dependencies to avoid dead loop of page re-rendering - #588

Merged
xiaoyongzhu merged 1 commit into
feathr-ai:mainfrom
enya-yx:enya/console-error
Aug 17, 2022
Merged

Remove extra dependencies to avoid dead loop of page re-rendering#588
xiaoyongzhu merged 1 commit into
feathr-ai:mainfrom
enya-yx:enya/console-error

Conversation

enya-yx commented Aug 17, 2022
edited
Loading

Copy link
Copy Markdown
Collaborator

Description

  • Remove extra dependencies for 'useEffect' and 'useCallback'. These dependencies can cause page re-rendering in a dead loop and infinite console errors would be printed.
  • Add the eslint disable mark to avoid warnings from eslint for these lines

How was this PR tested?

Does this PR introduce any user-facing changes?

  • No. You can skip the rest of this section.
  • Yes. Make sure to clarify your proposed changes.

jainr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Not familiar with eslint but why are we disabling it?

enya-yx commented Aug 17, 2022

Copy link
Copy Markdown
Collaborator Author

It requires us setting some variables as dependencies. Some of them are not necessary and can cause infinite page re-rending in a dead loop. So the console will keep printing that error message which may cause serious problem.

xiaoyongzhu merged commit a3e55bf into feathr-ai:main Aug 17, 2022
ahlag pushed a commit to ahlag/feathr that referenced this pull request Aug 26, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

4 participants


Back | FazBrowse Home | New Git URL