I’ve been struggling with Phoenix LiveView and its outer
I’d like to just have a very vanilla setup that would let me create a sidebar navigation panel showing the currently selected page for an admin tool. This seems like it would be a rather cookie-cutter thing to develop.
Most of the comments I’ve found note the LiveDashboard example, but it’s using a macro and PageBuilder module and isn’t quite the “simple” barebones thing I was hoping to find.
I found that I could inject a
live_component call in the template layout for
live.html.leex alongside the
@inner_content for the page, but it appears that its render function receives the socket struct instead of the assigns map? This made me worry something weird is going on…
I feel like this kind of thing should be dead simple, and it’s driving me crazy that I can’t find a simple implementation anywhere.
Any advice or links would be appreciated, thanks!