ConrabOpto / mst-query

Query library for mobx-state-tree
MIT License
116 stars 8 forks source link

Changing query in useQuery does not update observer #50

Closed k-ode closed 1 year ago

k-ode commented 1 year ago
const relationService = serviceStore.documentServices
        .get(path)
        .services.relation.get(relationId);

const { data, error, query } = useQuery(relationService.queries.relation, {
    request: {
       relationId,
    },
});