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

krasenyp
You probably already know that <span>{nil}</span> in a HEEX template produces <span> </span> when rendered. I fin...
New
c4lliope
# ~/src/livebook/.iex.exs System.cmd("xdg-open", [ LivebookWeb.Endpoint.access_url() ] ) Because Livebook requires a unique passcode on ...
New

Other Trending Topics Top

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
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews