-
-
Save jhonoryza/87808062a64c95d8b10d4d7f39a68768 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In Laravel app.js | |
import NProgress from 'nprogress'; | |
Livewire.hook('commit', ({ component, commit, respond, succeed, fail }) => { | |
NProgress.start() | |
succeed(({ spanshot, effect }) => { | |
queueMicrotask(() => { | |
NProgress.done(true) | |
NProgress.remove() | |
}) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment