Disable default watcher loading if one is specified in query
What problem does this feature solve?
If i use a watcher loading in my apollo config, this watcher is called every time i made a query. It's great if i want to work the same way every time, but if i've got one query where i want to manage the loading anothre way it doesn't work.
apollo: { watchLoading: '~/plugins/apollo-watch-loading-handler.js', clientConfigs: { default: '~/apollo/client-configs/default.js' }, includeNodeModules: true },
query example : dataSpecific: { query: require('@/apollo/queries/dataSpecificQuery'), variables () { return { ids: XXXX } }, update (data) { return data }, watchLoading (isLoading) { console.log("i'm the only one who works') } }
This module using the default config from vue-apollo. As my understanding, is the single smartQuery watchLoading also run for another query?
Because this module is a simple embed of vue-apollo, so it should work as same as the original.
both run when a smartQuery is executed. I'll open an issue on the original module. Thanks for your quick response.