Closed FireworksX closed 4 months ago
Read graph. At starts graph Type:ID is empty, but i want get update when he'll be available. That work
const [graph] = useGraph(state, 'Type:ID')
then invalidate state.invalidate( 'Type:ID') and create again state.mutate({ _type: 'Type', _id: 'ID' }) and now useGraph dont react on update.
state.invalidate( 'Type:ID')
state.mutate({ _type: 'Type', _id: 'ID' })
useGraph
resolved #31
Read graph. At starts graph Type:ID is empty, but i want get update when he'll be available. That work
then invalidate
state.invalidate( 'Type:ID')
and create againstate.mutate({ _type: 'Type', _id: 'ID' })
and nowuseGraph
dont react on update.