UI: Moves fetchdata() to the created()#4811
UI: Moves fetchdata() to the created()#4811yadvr merged 6 commits intoapache:4.15apache/cloudstack:4.15from utchoang:feature/move-fetchdata-createdutchoang/cloudstack:feature/move-fetchdata-createdCopy head branch name to clipboard
Conversation
|
@utchoang a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. [S] |
|
@utchoang will this offer any performance improvement? I hope we are not accessing/manipulating DOM elements in any of the fetchData methods |
|
@shwstppr Yes. In apache/cloudstack-primate#719 then move fetchData to created from mounted to reduce wait time for API calls since the data has been created but the page has not yet been rendered |
|
@utchoang what are the pros and cons of using one vs the other? |
|
@rhtyd When the component is initialized, fetching data from the backend at |
|
@davidjumani a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
|
@utchoang can you fix the conflict against latest 4.15 branch |
|
@utchoang can you fix the conflict? |
|
@rhtyd a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
yadvr
left a comment
There was a problem hiding this comment.
LGTM proxing David's testing/review
|
UI build: ✔️ |
Description
This PR to move fetchData() to created() insteadof mount()
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?