Hi everyone,
I’ve been trying liveview for the past few days and I found it pretty straight forward when building simple pages.
However, I am now trying to build a SAAS-like dashboard but I’m having a hard time figuring out how to manage it with liveview.
IE:
As I see it there are two way to handle this:
-
Using a layout
dashboard.html.heex:
This method would mean that for each time I click a tab, I render a new liveview. Reloading the entire layout? How would my layout know on which tab I currently am? -
Using a single liveview:
This one would I think look similar to how phx.gen.live handle different views, but considering a large app with multiple tabs, would the file not contain too much ?
Maybe I am missing something. How would you guys build something like that ?
Thanks for the help!























