Liveview feels complex

This might entirely be down to my lack of exposure to liveview in any real sense, but I am finding there is a gap (at least for me) from going from the simple examples to anything more complex.

There is Liveview, live components and now liveview async. Some of these hold state, some of these are the source of truth.

I guess I am trying to say I am finding it a bit hard to know what to use where, and how to compose them all together.

Any advice or comments would be greatly appreciated.

1 Like

Live component and async assigns are optimizations that you can reach for if/when you need them, but you can certainly build an entire application without them. So, my advice would be to keep it simple. You can do anything you need with assign and update for dealing with assigns, and function components for rendering.

I think you’ll know if/when you get to a point where you want to use async assigns, as a page is taking too long to load because the amount of data involved, or you need to fetch the data from an external service.