Skip to content

Made api requests in the frontend more efficient#327

Merged
stijnpotters1 merged 2 commits intomasterfrom
fix/improved-request-handling
Mar 11, 2026
Merged

Made api requests in the frontend more efficient#327
stijnpotters1 merged 2 commits intomasterfrom
fix/improved-request-handling

Conversation

@stijnpotters1
Copy link
Contributor

@stijnpotters1 stijnpotters1 commented Mar 10, 2026

Now the frontend does not make duplicate api requests anymore

@Matthbo You can checkout in this branch and check how requests are made after the changes. If you have any feedback about additional improvements that could be made, let me know!

@stijnpotters1 stijnpotters1 requested a review from Matthbo March 10, 2026 09:50
@stijnpotters1 stijnpotters1 self-assigned this Mar 10, 2026
@stijnpotters1 stijnpotters1 marked this pull request as ready for review March 10, 2026 09:52
@stijnpotters1 stijnpotters1 linked an issue Mar 10, 2026 that may be closed by this pull request
Copy link
Member

@Matthbo Matthbo left a comment

Choose a reason for hiding this comment

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

Seems to work way better and without issues, at least during my testing.

I did notice children of children always being null, which during code review is because of the shallow retrieval of the directory structure, this is completely okay.
Closing and then opening the parent directories didn't seem to rerequest the data, if this is because of the cached data maybe it's good to think about a cache time-to-live (TTL) which makes sure old cache isn't used.
If this is what we want, let's make that a new issue and PR.

@stijnpotters1 stijnpotters1 force-pushed the fix/improved-request-handling branch from 0cf15d5 to da967e5 Compare March 11, 2026 09:46
@sonarqubecloud
Copy link

@stijnpotters1 stijnpotters1 requested a review from Matthbo March 11, 2026 09:51
@stijnpotters1 stijnpotters1 merged commit 43a59be into master Mar 11, 2026
5 checks passed
@stijnpotters1 stijnpotters1 deleted the fix/improved-request-handling branch March 11, 2026 13:14
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.

Complete flow request revision

2 participants