stryrckt

stryrckt

I’m excited about the new LiveComponents feature in LiveView, but I haven’t seen much written on it, so I decided to write a couple of articles based on a talk I gave at our Portland, Oregon Elixir meetup. The first article is an introduction to LiveComponents and is available now. The second one will be out later next week and walk through a more elaborate example.

You can find the first article here:

Showing Posts 1 to 8

phoebe

phoebe

Thank you, bookmarking this!

imartinat

imartinat

Hi,

Could you please update the mount definitions in the LiveComponents to contain only the socket? (Phoenix.LiveComponent — Phoenix LiveView v1.2.5) . If we follow your article, and add internal state to the LiveComponents, it doesn’t work : Livecomponent: assign @value not available in eex template. Why such behaviour? - #8 by Softknobs
Thanks.

stryrckt

stryrckt OP

Thanks for pointing that out. It is fixed now.

stryrckt

stryrckt OP

I have just updated the article and code to LiveView 0.6.0.

stryrckt

stryrckt OP

I have updated the article and code to LiveView 0.13.3.

sodapopcan

sodapopcan

In the third code example you have: ~L"\"" (note the backslash). That’s a typo is it not?

sodapopcan

sodapopcan

PS, really, really helpful article. I just got started with Phoenix a few weeks ago.

stryrckt

stryrckt OP

Glad you found the article helpful! Yeah, that was a formatting issue. Tehanks for letting me know. It is fixed now.

— All posts loaded —

Where Next? Top

Trending in Guides/Tuts Top

rogach
I’ve spent some time understanding how to do hot code reloading with releases built using mix release, and here I’d like to detail the st...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
budgie
A little off-topic, but I feel like people here have a good head on their shoulders. I used to be quite good at making software. Was luc...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews