Skip to content

AAE-33589 Move POST request for tasks list data to ngAfterViewInit #10793

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

Closed
wants to merge 1 commit into from

Conversation

tomson7777
Copy link
Contributor

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation
  • Other... Please describe:

What is the current behaviour? (You can also link to an open issue here)
Columns filtering logic is executed to quickly.

What is the new behaviour?
Columns filtering logic is executed in right time, when all from schema are loaded.

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

Copy link

@dsibilio dsibilio changed the title AAE-33589 move POST request for tasks list data to ngAfterViewInit AAE-33589 Move POST request for tasks list data to ngAfterViewInit Apr 16, 2025

ngAfterViewInit() {
Copy link
Contributor

@DenysVuika DenysVuika Apr 16, 2025

Choose a reason for hiding this comment

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

it should be ngOnInit

  • Use ngOnInit for data fetching and initialization that does not depend on the view being fully rendered.
  • Use ngAfterViewInit for logic that requires the view to be fully initialized.
  • Refactoring your code to ngOnInit in this case would likely improve the performance and responsiveness of your component.

Copy link
Contributor

@dsibilio dsibilio left a comment

Choose a reason for hiding this comment

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

Tested on spare-02 and it does not work as expected.

Console error log:

ERROR Error: NG0203
    Vt https://hxps-spare-02.studio.dev.experience.hyland.com/admin/chunk-GFFQMQQF.js:764
    TI https://hxps-spare-02.studio.dev.experience.hyland.com/admin/chunk-GFFQMQQF.js:768
    it https://hxps-spare-02.studio.dev.experience.hyland.com/admin/chunk-GFFQMQQF.js:772
    ngAfterViewInit https://hxps-spare-02.studio.dev.experience.hyland.com/admin/chunk-GFFQMQQF.js:986

Behaviour is that we get stuck on the spinner while trying to load the view:

image

After reverting the image to the original rc one then it works, so it's definitely related to this change.

@dsibilio
Copy link
Contributor

Closing this in favor of #10813 instead.

@dsibilio dsibilio closed this Apr 23, 2025
@dsibilio dsibilio deleted the feature/AAE-33589 branch April 23, 2025 07:52
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.

3 participants