mobxjs / mst-gql

Bindings for mobx-state-tree and GraphQL
MIT License
680 stars 81 forks source link

Defined actions on TodoModel are not accessible #321

Open alebinson opened 3 years ago

alebinson commented 3 years ago

When trying to run example #1 on aside project I bumped to few issues:

  1. action methods defined on TodoModel level(toggle) not accessible on data object returned from useQuery() hook image image

  2. store property todos not populated in a result of running query

relative deps in package.json are:

    "graphql": "^14.6.0",
    "graphql-tag": "^2.10.1",
    "mobx": "^6.2.0",
    "mobx-react": "^7.1.0",
    "mobx-state-tree": "^5.0.1",
    "mst-gql": "^0.14.0",
    "react": "^16.13.1",
    "react-dom": "^16.13.1",
    "react-scripts": "4.0.3",
    "typescript": "^4.1.2",
Benz19 commented 1 year ago

Hi @alebinson Im trying to help @jesse-savary organize all open issues... Are you still having this issue?