Stimulus Discourse

How to manually display the turbolinks loader bar in non-turbolinks ajax callbacks?

#1

So, I have a list page with a filter form that makes an ajax request and replaces part of the body every time the user changes a filter value: https://github.com/yourlabs/crudlfap/blob/master/js/controllers/autosubmit_controller.js

How do you advise to trigger the turbolinks loader bar, as-if it was a normal turbolinks request ?

Thanks in advance

Keep up the great work !

#2

Check out this issue on GitHub for instructions on how to use the progress bar API for custom requests.

#3

Thank you so much for the heads up @kaspermeyer !

You got another user feeling a bit silly writing to you know :joy:

Have a great day !

1 Like
#4

No such thing as silly questions :relieved: Thanks, you too :v: