ecrin-github / ecrin-github/rms-portal-new

Reuse loaded data where going from view edit pages

Open
#30 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

When on a view page (e.g. study) and clicking on the edit button to go to the edit view, the data is reloaded even though the same data was loaded on the view page. Passing the data in the `routerLink` `queryParams` and checking for the `queryParams` in `ngOnInit()` should allow to reuse the loaded data, thus removing unnecessary queries and improving the app speed.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the view and edit page components, then trace the edit button's routerLink and each page's ngOnInit(). Check how queryParams are passed and whether the edit page can use them before issuing another query. Done means navigating from a view page reuses its loaded data without the unnecessary reload while preserving normal direct navigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend, performance
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.