mekhami
799ac2b316
fix: error in renderless rendering ( #381 )
2018-09-07 21:02:20 +02:00
Juan Antonio Gómez Cabo
00a3efdacd
feat: Let the ApolloQuery be a renderless component if tag prop is undefined ( #365 )
...
* Let the ApolloQuery be a renderless component if `tag` prop is undefined
* Let the ApolloMutation component be a renderless component if `tag` prop is undefined
2018-08-30 14:00:53 +02:00
Hugome
3c6cd10fc9
feat: Add clientId in ApolloMutation component ( #359 )
2018-08-30 13:55:35 +02:00
Omar Jbara
9ca73d5863
feat: Added support for debounce and throttle in ApolloQuery component ( #349 )
...
* Added support for debounce and throttle in ApolloQuery component
* chore: revert esm dist
* chore: revert min dist
* chore: revert umd dist
2018-08-30 13:55:11 +02:00
ciscorn
5209da0766
fix: SmartQuery shouldn't be auto-started on server when prefetch is false ( #348 )
...
* Query shouldn't be started on server if prefetch is false
* fix: new prefetch option support
2018-08-30 13:52:29 +02:00
Guillaume Chau
768e4688b9
refactor: SSR
2018-08-30 13:36:15 +02:00
Guillaume Chau
62829e4a96
refactor: from provide to apolloProvider option, closes #319
2018-08-26 18:16:17 +02:00
Guillaume Chau
ddc197683b
fix: throttle/debounds closes #311
2018-06-18 14:26:44 +02:00
Guillaume Chau
9cba8ed756
fix: eslint error
2018-06-18 12:06:31 +02:00
Yordis Prieto
dff5fb9582
Move times outside of the result data structure ( #308 )
...
closes #307
2018-06-18 12:02:47 +02:00
Guillaume Chau
e235c92e88
feat: add smartquery argument to loading watchers
2018-06-14 01:22:59 +02:00
Guillaume Chau
7267dc4182
fix: call loading watchers when smart query is destroyed and was loading
2018-06-14 01:22:42 +02:00
Guillaume Chau
36faab0a84
fix: $query defaultOptions in provider
2018-05-30 14:19:53 +02:00
高英健
086b57acd0
fix: hasOwnProperty is not a function ( #294 )
...
this.$options.methods may created by `Object.create`, so the object without a prototype can not use `hasOwnProperty` directly
2018-05-28 12:23:41 +02:00
Guillaume Chau
297c6303e1
fix : #272 #283 restart query sub after error
2018-05-27 00:33:43 +02:00
Guillaume Chau
75b69e5f69
feat: error.gqlError => first GraphQL error
2018-05-27 00:32:07 +02:00
Guillaume Chau
a043654f8e
fix: watch on apollo fields
2018-05-27 00:30:59 +02:00
Guillaume Chau
9c89a24ce5
fix(ApolloQuery): remove console.log
2018-05-26 11:43:15 +02:00
Guillaume Chau
4b59520fd5
fix: $query
2018-05-24 18:03:19 +02:00
Juraj Pikora
4e5b8e17e4
Fix: factory function for throttle/debounce ( #288 )
2018-05-23 15:24:40 +02:00
Juraj Pikora
267b6fc97b
Fix: reactiveSetter deep flag propagation ( #289 )
2018-05-23 15:24:03 +02:00
Guillaume Chau
73c9c2a4e5
fix : #239 skip prop proxy if query is manual
2018-05-21 20:55:43 +02:00
Guillaume Chau
effec9303f
fix: use apply
2018-05-21 20:35:35 +02:00
Guillaume Chau
534beff50b
refactor: callHandlers fix #108
2018-05-21 20:32:16 +02:00
Guillaume Chau
05df318ac5
refactor: watchers in start() fix #122
2018-05-21 20:26:15 +02:00
Guillaume Chau
3d4e68fda8
feat: ApolloQuery deep prop
2018-05-21 20:18:17 +02:00
Guillaume Chau
877755f755
fix: set components props to undefined
2018-05-21 20:16:13 +02:00
Guillaume Chau
c53127d205
feat: deep options fix #219
2018-05-21 20:15:36 +02:00
Guillaume Chau
65a77f9202
fix: eslint
2018-05-21 20:00:45 +02:00
Guillaume Chau
878f966b1f
fix : #265 silent errors if catched
2018-05-21 19:54:54 +02:00
David Duarte
fccb313293
Remove lodash to reduce final size ( #251 )
2018-05-21 19:50:29 +02:00
Legenko Roman
385dec2237
Add default query options ( #257 )
2018-05-21 19:43:18 +02:00
Dominic Garms
a9dffa3906
relax getter on loading ( #237 )
...
* relax getter on loading
* fix setter as well
2018-05-21 19:39:33 +02:00
Binyomin Greenes
c8f9f30482
Pass back isLoading to scoped-slot ( #218 )
...
* Pass back `isLoading` to scoped-slot
Right now `loading` is only set when a result is received, not when the request is sent. Using `watchLoading`, we can pass the loading state from when the request is sent.
* Use $apolloData.loading
We can simply use the $apolloData.loading property to get the current loading state of the query.
2018-05-21 19:38:46 +02:00
gaberudy
82d6c02f7b
no-cache smart queries are throwing exceptions in optimistic UI updates ( #280 )
...
This short circuits unproductive cache work for no-cache queries that will not exist
2018-05-21 19:37:57 +02:00
Guillaume Chau
916675fdb1
fix: improve data handling fix #274
2018-05-11 15:40:19 +02:00
Loi Tran
4eb30c780f
fixed: receiving error if _this. is not defined #275 ( #279 )
...
* fixed: receiving error if _this. is not defined #275
* fixed: receiving error if _this. is not defined #275
2018-05-11 12:48:17 +02:00
Guillaume Chau
80c8fe0d23
fix: $apolloData
2018-05-07 19:30:01 +02:00
Guillaume Chau
304abf7efa
fix undefined $apolloData
2018-05-07 19:09:51 +02:00
Guillaume Chau
31f790d524
fix: ApolloMutation done event: added result arg
2018-05-07 17:34:39 +02:00
Guillaume Chau
27171b215f
feat: ApolloMutation component + no longer require data declaration
2018-05-07 17:30:09 +02:00
Guillaume Chau
99b09e4cc0
ApolloQuery events + times attr
2018-03-09 20:45:21 +01:00
Guillaume Chau
e67727e492
Support result hook in SmartQuery subscribeToMore
2018-02-15 17:48:25 +01:00
Guillaume Chau
ca751be551
Fix ApolloQuery default slot
2018-02-15 17:47:04 +01:00
Guillaume Chau
aee18b7f0d
If query is a function, call it in prefetchAll - fix #153
2018-02-12 16:43:26 +01:00
Guillaume Chau
c8ab8dbfb3
SmartSubscription: bind updateQuery to vm - fix #154
2018-02-12 16:42:38 +01:00
Guillaume Chau
164b7bb9de
Cleanup console log
2018-02-12 16:34:08 +01:00
Guillaume Chau
6650430959
Query components + loading + provider improvements
2018-02-11 21:55:43 +01:00
Dustin B
96570a169a
Don't require the key to match the query name ( #186 )
...
In "manual" mode, the user is setting the manually working with the value, so an error should not be thrown if the key isn't present in the response.
2018-02-07 19:40:43 +01:00
Guillaume Chau
7889a0d590
Fix data not updating if 'variables' changes and apollo doesn't need a request
2017-11-01 21:04:12 +01:00