Skip to content

Single investigations are now fetched on demand

Loic Huder requested to merge single-investigation-fetch into master

...using RestHooks, meaning it will also cache them.

Basically, I replaced the useInvestigation hook (that was doing a find in the array of all investigations) by a fetch using RestHooks' useResource and the new icat-plus endpoint (icat-plus!288 (merged)).

Due to this, the fetching state (available in useInvestigation) has to be moved in the HOC which is why I wrap all single investigation routes by LoadingBoundary in the App.

Edited by Loic Huder

Merge request reports

Loading