LiveView render not propagating assigns if render is not ~L but a index.html.leex file?

Thanks for the hint,

I’ve created a minimal testcase of this issue and uploaded on GitHub, I would be very thankful if you can take a look.

If loaded via localhost:4000/normal, a normal controller will be displayed, if loaded via localhost:4000/live a live controller will be shown, reflecting the current problem.

That @test variable is assigned by router, defined in router.ex as a plug

URL: https://github.com/StormBytePP/liveview_testcase

1 Like