what kind of patterns are folks using to leverage effectful services within their react components themselves? im struggling to come up with an api similar in spirit to react-query that exposes error, loading and data variables who's argument accepts the 'Service' class itself?