Skip to content

Releases: ConrabOpto/mst-query

v2.0.4

14 Feb 10:21
Compare
Choose a tag to compare

2.0.4 (2023-02-14)

  • Fix issues with production bundle.
  • Fix problems with initializing a QueryClient.

v2.0.1

08 Feb 15:47
Compare
Choose a tag to compare

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. Use merge method on model store instead.
  • env is removed from createQuery/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 in useQuery is now initialData.
  • createRootStore and createModelStore is mandatory.
  • getQueries have moved to rootStore.

v1.1.0

22 Jul 14:51
Compare
Choose a tag to compare

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

v.1.0.7

06 Feb 17:14
Compare
Choose a tag to compare

1.0.7 (2021-11-12)

Patch release that adds support for types.map in data model, and fixes some miscellaneous issues.

v1.0.3

12 Nov 10:27
8fa740c
Compare
Choose a tag to compare

1.0.3 (2021-11-12)

Patch release that fixes an issue with QueryClientProvider.

v1.0.0

09 Nov 13:14
d7a44aa
Compare
Choose a tag to compare

1.0.0 (2021-11-09)

First major release.