mcrumm/phoenix_profiler

Route information is shown only briefly, but then is replaced with `route_not_found`

Closed this issue · 4 comments

This happens on my Live+Dead view pages, but not the LiveDashboard. So I'm open to the idea that there's something wrong with my project.

Here's what we see:
example

Fyi, LiveDashboard only gets the "dead" toolbar, so as a comparison it is only helpful to a point. :)

From the screen capture, the issue seems to occur on connected mount, so either the toolbar can't find the profile, or there may be something wrong with the live navigation check. 🤔

Is the LiveView for the @portal route mounted at the router?

This is actually a deadview page, which is why it's confusing that we're seeing this happen here:

 resources("/portals", PortalController, only: [:index, :show, :create])

But this page does have a few uses of live_render:

<%= live_render @conn,  #... %>

Is that the cause?

We do have more traditional live views that are mounted at the router, and those experience the same issue.

    live_session :config_search do
      live "/config_search", ConfigSearchLive.Index, :index
    end

But this page does have a few uses of live_render

That might be it! :) Thank you for the report, I will do some testing around that use case!

Ah ... know what? So our navbar has a dropdown that also uses a live_render for a way to search+quick find other portals. So that explains why it also affects the live view mounted in the router.

Thank you. I do want to spend some time to become a little more intimate with the project.