The @query decorator, which is required to use refetch, only works with class-based views, requiring that functional components be wrapped in classes before the decorator can be used.
We should consider updating the decorator to support functional components, if possible. (I have not used JavaScript decorators enough to know if this would be possible.)
The
@querydecorator, which is required to userefetch, only works with class-based views, requiring that functional components be wrapped in classes before the decorator can be used.We should consider updating the decorator to support functional components, if possible. (I have not used JavaScript decorators enough to know if this would be possible.)