Skip to content

Releases: ConrabOpto/mst-query

v3.4.0-canary.11

27 Sep 08:58
Compare
Choose a tag to compare

What's Changed

  • fix: Generator field overrides by @dsnn in #73
  • fix: Render null when request changes
  • fix: Add missing meta option in hydrate

Full Changelog: v3.4.0-canary.9...v3.4.0-canary.11

v3.4.0-canary.9

03 Jul 14:07
Compare
Choose a tag to compare

What's Changed

  • Refetch on changed - fix pagination by @k-ode in #59
  • Fix crash on unsubscribe by @k-ode in #61
  • Add invalidate by @k-ode in #62
  • Fix setData type by @k-ode in #65
  • Fix stable identity of functions in hooks #66 by @k-ode in #67
  • Add isStale to useQuery to deterine if a query is stale #69 by @k-ode in #70

Full Changelog: v3.3.0...v3.4.0-canary.9

v3.3.0

12 Jan 14:51
90c25b6
Compare
Choose a tag to compare

What's Changed

  • Feature/amend query types by @k-ode in #57
  • Add refetchOnMount & refetchOnRequestChanged by @k-ode in #58

Full Changelog: v3.2.0...v3.3.0

v3.2.0

09 Jan 12:47
0b12911
Compare
Choose a tag to compare

What's Changed

  • Fix types for query methods and allow empty queryMore by @k-ode in #56

Full Changelog: v3.1.8...v3.2.0

v3.1.8

24 Oct 10:04
dc67c60
Compare
Choose a tag to compare

3.1.8 (2023-10-24)

Full Changelog: v3.1.7...v3.1.8

v3.1.7

19 Oct 13:57
Compare
Choose a tag to compare

3.1.7 (2023-10-19)

  • Fix types & unprotect onQueryMore/onMutate by @k-ode in #54

Full Changelog: v3.1.5...v3.1.7

v3.1.5

28 Sep 17:06
Compare
Choose a tag to compare

3.1.5 (2023-09-28)

  • Add optimisticUpdate api by @k-ode in #49
  • Fix changing query argument in useQuery by @k-ode in #51
  • Fix useVolatileQuery request by @k-ode in #52
  • Fix safeReference

Full Changelog: v3.0.5...v3.1.5

v3.0.5

27 Jun 11:19
5edc073
Compare
Choose a tag to compare

3.0.5 (2023-06-27)

  • Can use standard types.reference instead of MstQueryRef. MstQueryRef is removed.
  • No need for actions or generators! If you use hooks you no longer need to supply an action, it will automatically do the right thing for you.
  • Removed onSuccess callback on useQuery since they tend to lead to subtle bugs
  • Added two reactive listener callbacks onMutate and onQueryMore. See README for examples.

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.