opsmill / infrahub

Infrahub - A new approach to Infrastructure Management
https://opsmill.com/
GNU Affero General Public License v3.0
213 stars 18 forks source link

task: GraphQL Queries refetch using builtin tools from apollo #3026

Open pa-lem opened 7 months ago

pa-lem commented 7 months ago

Component

Frontend UI

Task Description

We can remove useImperativeHandle and ref that were used to share the refetch function from a child to its parent, in order to call it from the parent

Link: https://www.apollographql.com/docs/react/data/refetching/

dgarros commented 1 month ago

@pa-lem is still task still valid/required in the frontend ?

pa-lem commented 1 month ago

there is still a few places where we can update the logic refetch to clean the code, I would suggest to keep it open and do it when we have some bandswidth, it should not be long to do