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

Improve rendering #82

Merged
merged 4 commits into from May 31, 2020
Merged

Improve rendering #82

merged 4 commits into from May 31, 2020

Conversation

ricoberger
Copy link
Member

@ricoberger ricoberger commented May 30, 2020

  • Optimize rerendering of components by using React.memo. Some renderings, which were caused by React Router are unnecessary. By using React.meno these rerenderings are avoided.
  • Introduce useAsyncFn to improve the data fetching in the components.
  • Fix Incorrect page displayed. #79. It could happen that a wrong page was displayed, when the page was switched before the API call was finished.
  • Improve the status indication of a resource and distinguish between the warning and danger status. If the success check fails, the status is set to danger, when a required value is undefined or zero. For everything else the status is set to warning. Closes Improvement: Show Deployments yellow if... #81.
  • Add missing values for services. Closes Loadbalancer external IP address isn't shown #83.

Optimize rerendering of components by using React.memo. Some renderings
which were caused by React Router are unnecessary. By using React.meno
these rerenderings are avoided.

Introduce useAsyncFn to improve the data fetching in the components.
This needs some more refactoring in components which were not touched.
The introduction of useAsyncFn fixes also a bug where the wrong page was
displayed. This could happen when the page was changed before the API
call was finished.
Use a status function instead of a status variable to determine the
status of a resource.

Distinguish between warning and danger. The status should be danger,
when required status indicator is zero or undefined. When this isn't the
case and the success probe failes the status is set to warning.
@ricoberger ricoberger merged commit cad5082 into master May 31, 2020
@ricoberger ricoberger deleted the improve-rendering branch May 31, 2020 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant