Conditional useGetEndpoint
Sometimes we know the endpoint call will be wrong (no session id, no dataset ids...) be we still have to call if because we cannot have hooks called under a condition.
It would be nice to have a parameter to tell useGetEndpoint
to not actually call the endpoint under a certain condition and just return undefined.