Comments (8)
@Atinux sure you can add me as maintainer, I will try my best.
I'm using a global indicator now and it works quite good so far. Will close it for now, maybe if I find a smarter solution I'll re-post it here
from apollo.
Is there any out-of-the-box solution yet or is a custom implementation the only solution?
from apollo.
@IgorSzymanski Not sure if you got it figured out but I was able to get it working with this
watchLoading: function(isLoading) {
this.$nextTick(() => {
if (this.$nuxt && this.$nuxt.$loading) {
isLoading ? this.$nuxt.$loading.start() : this.$nuxt.$loading.finish();
}
})
}
from apollo.
Hi @dohomi
Does this code works when you implemented it?
from apollo.
@Atinux no it does not work. The problem is, that the routing already calls start() and finish() before the watchLoading
hook is being called. And somehow (I don't know the reason) the call of
watchLoading(isLoading){
if (isLoading) {
this.$root.$loading.start()
} else {
this.$root.$loading.finish()
}
}
Is not showing the global loading at all.
from apollo.
I see @dohomi
Why not disabling loading
into your nuxt.js app and use a custom loader that you can start/end with events instead?
BTW, you are contributing well on this module and honestly, I don't use apollo, do you want to be a maintainer of this module?
Please mention me, I have too many Github notifications so it's hard to keep track of them :/
from apollo.
@dohomi Welcome to Nuxt Community :D
from apollo.
@Atinux OK thanks!
from apollo.
Related Issues (20)
- Invariant Violation HOT 1
- $apollo and $apolloHelpers are unknown HOT 2
- How to use nuxtjs/apollo with apollo-upload-client HOT 1
- Nuxt can't start with apollo HOT 1
- Evict({}) not working HOT 1
- SSR renders template after useQuery is resolved HOT 2
- Type Inference breaks with `bundler` resolution HOT 2
- Support cache persistence configuration
- Apollo client not found HOT 2
- [useAsyncData] Component is already mounted, please use $fetch instead HOT 1
- Variables passed as ref are not passed along to apollo
- Can't access result.value after successful query on first load HOT 1
- Module '"@nuxtjs/apollo"' has no exported member 'defineApolloClient' HOT 1
- Relative API url doesn't work with SSR HOT 1
- _isomorphicFetch is not defined
- Multiple calls to `useAsyncQuery` from composable function causes 500 error in SSR HOT 2
- useQuery throws error if clientId supplied HOT 1
- fetchMore function missing in useAsyncQuery
- Failed to import useQuery
- GraphQL playground on local server?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo.