Bug 1995325

Summary: Projects page fails to render due to calling more hooks than previous render
Product: OpenShift Container Platform Reporter: Rastislav Wagner <rawagner>
Component: Management ConsoleAssignee: Yadan Pei <yapei>
Status: CLOSED ERRATA QA Contact: Yanping Zhang <yanpzhan>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.9CC: aos-bugs, jokerman, spadgett, yapei
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:47:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
projects loading none

Description Rastislav Wagner 2021-08-18 20:04:51 UTC
Description of problem:
useMemo hook is placed after conditional return statement which may cause react errors


How reproducible:
always

Steps to Reproduce:
1. go to Projects page
2. refresh browser tab

Actual results:
rendering fails with Rendered more hooks than during the previous render.


Expected results:
rendering is successful

Comment 3 Yadan Pei 2021-08-24 07:39:23 UTC
Created attachment 1817058 [details]
projects loading

goes to Projects page and refresh browser tab, rendering is successful. See recording in attachment, verified on 4.9.0-0.nightly-2021-08-23-175356

Comment 6 errata-xmlrpc 2021-10-18 17:47:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:3759