Single investigations are now fetched on demand
...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 (https://gitlab.esrf.fr/icat/icat-plus/-/merge_requests/288).
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