This will be solved by the services/Inversify refactor, but I wanted to note that currently, the useService hook is not actually a hook. It works now because it is not using other hooks, but useService is mostly used in controller methods that are called from useQuery and useMutation functions.
This can lead to problems when doing performance updates or using other hooks later.
This will be solved by the services/Inversify refactor, but I wanted to note that currently, the
useService
hook is not actually a hook. It works now because it is not using other hooks, butuseService
is mostly used in controller methods that are called fromuseQuery
anduseMutation
functions.This can lead to problems when doing performance updates or using other hooks later.