forked from patternfly/patternfly-react
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(VncConsole): prevent running initialization code more than once (p…
…atternfly#8373) (patternfly#8374) The functions that were on the dependency list of the useEffect hook got redefined each time the component got updated, resulting in the component's initialization code, from within the useEffect hook, to be running more than once. That was unwanted behavior and the useCallback wrappers should prevent it.
- Loading branch information
Showing
1 changed file
with
48 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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