Releases: ConrabOpto/mst-query
Releases · ConrabOpto/mst-query
v2.0.4
v2.0.1
2.01 (2023-02-08)
New features
- Support React 18 and Strict Mode.
- Fully reactive queries.
- Better integration with classical mobx-state-tree setups.
- A much more simplified and streamlined api.
- Optimistic updates with automatic rollback.
- Dependent queries with the enabled prop.
- Generate models from graphql schema by @dsnn.
Breaking changes
- Using queries and mutations as properties is mandatory.
- Garbage collection will now only happen when you manually call
runGc
. createOptimisticModel
is removed. Usemerge
method on model store instead.env
is removed fromcreateQuery
/createMutation
.useSubscription
is removed.useLazyQuery
is removed. Use enabled prop instead.cacheTime
is removed. Queries can be removed manually when you don't need them anymore.data
inuseQuery
is nowinitialData
.createRootStore
andcreateModelStore
is mandatory.getQueries
have moved torootStore
.
v1.1.0
1.1.0 (2022-07-22)
- Use queries and mutations as properties.
- Improve typing of next (no longer requires
typeof
). - Fix stale time with huge value by @benjaminkwokhuen in #25
- Allow partial data when merging by @benjaminkwokhuen in #23