Comments (5)
@zacksmash I think i am runnig similar issue. Did you solve it?
inertiajs/inertia#965 (comment)
from progress.
@robsontenorio I haven't yet, I ended up throwing a custom loading indicator for my reload()
request, but it would be nice if Inertia could use the built in NProgress
during that.
from progress.
@zacksmash I have tried custom loading, but no luck. Could you answer my comment with your solution?
inertiajs/inertia#965 (comment)
from progress.
@robsontenorio Sure, my doesn't look too different from your solution, in your comment, but here's what I have
data() {
loading: true,
},
...
mounted() {
this.$inertia.reload({
only: ['someData'],
onSuccess: () => this.loading = false
})
}
from progress.
@zacksmash Are you able to get that loading
working when navigating to that target page using both approaches?
From any orgin page, in my case:
It works with <a href="/somepage"> go </a>
But not woks with this.$inertia.visit('/somepage')
EDIT:
- Main problem here is
onStart
. - Just noticed we are using reversed logic for
loading
, so in your case won't be an issue.
from progress.
Related Issues (12)
- "Uncaught TypeError: n.detail is null" when clicking link HOT 5
- Allow configuration of parent container HOT 2
- Progress bar doesn't run as expected HOT 2
- Adjusing bar line width HOT 1
- Laravel Jetstream HOT 1
- Consider using queueMicrotask instead or Promise.resolve() HOT 1
- Allow to start the progress bar on first page load
- CSP Nonce Support HOT 2
- event not getting to start method HOT 6
- Uncaught TypeError: Cannot read property 'visit' of null HOT 5
- Progress Bar Problem With Laravel Jetstream Inertia stack HOT 1
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 progress.