ecrin-github / rms-portal-new

RMS Portal with Python backend
MIT License
0 stars 0 forks source link

Reuse loaded data where going from view edit pages #30

Open cudillal opened 4 months ago

cudillal commented 4 months ago

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.