DEV Community

loading...

live_render from phoenix controller

Sushant Bajracharya
My key strengths: Discipline and Focus
・1 min read

Recently, I rendered a liveview from one of my controller and I had to pass some params to that liveview. You can pass the params if you put it in the session option but that didnt felt right to me.

So, I figured I ask the community and I got to know when not to use live_render in the controller instead and got a reply from the creator himself.

when you have an existing controller and dead views already in place and you want to add in a bit of live stuff

Discussion (0)