julienbourdeau / debugbar

Powerful devtools for Ruby on Rails. Inspired by the Laravel Debugbar.
https://debugbar.dev
MIT License
486 stars 7 forks source link

Soft navigation detection #28

Open michaelchadwick opened 7 months ago

michaelchadwick commented 7 months ago

My site primarily uses soft navigation links, and those don't seem to trigger a request as far as Debugbar is concerned. Is there a way to still use this tool?

Screenshot 2024-04-01 at 10 49 43 AM

julienbourdeau commented 7 months ago

If I understand correctly, you have an SPA in the frontend and changing pages doesn't trigger any call to the backend. The debugbar will only see request made to the backend. For anything happening in React, Vue and such, you would need a dedicated too.

Let me know if I misunderstood something.

michaelchadwick commented 7 months ago

I'm using Rails 7 and <%= link_to %> links mostly, but maybe I have some kind of config or setting turned on that makes everything a soft navigation?

osbre commented 4 months ago

All Ajax/spa requests will still get logged. Can confirm that it works with Inertia.js and Vue.

Could you open a browser dev tools network tab and see if there is a new request when you navigate? It may also be that you have caching preventing the request from firing.