Latest #hooks Threads 
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Ash is not triggering before_action hook’s callback function if the update action is atomic, but when I set require_atomic? false in the ...
New
I use this pattern to handle user input before JS has loaded / hooks have mounted:
<button onclick="this.$clicked = true" phx-hook="M...
New
Phoenix 1.8.0 gave us a new module ColocateHook, I try is today.
I set esbuild like this:
config :esbuild,
version: "0.25.4",
ex_cm...
New
Greetings, comrades.
At work, we have been converting some legacy LiveComponents into functional components. This typically involves mov...
New
Hey there.
I don’t know if this is intended behaviour, thus I wanted to open a discussion here before opening a bug report.
I tried to ...
New
I don’t suppose you can lazy load a library depending on runtime data? For example if it’s a certain user they can lazy load ‘library A’ ...
New
Is it still the case that you can only use one hook per Dom element in liveview? I know you can use one to delegate to others. But it wou...
New
Hi everyone,
I’m currently working on a Phoenix LiveView project and I’ve encountered a challenge that I hope someone can help me with. ...
New
I am a bit stumped…
I am trying to attach a life cycle hook to close flash messages automatically after 5 seconds.
I have this code:
d...
New
This Week's Trending
This Month's Trending
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
This Year's Trending
Is it still the case that you can only use one hook per Dom element in liveview? I know you can use one to delegate to others. But it wou...
New
Motivation:
I want to write
<.relative_datetime timestamp={my_schema.inserted_at} />
and to get this in my browser:
while oth...
New
Phoenix 1.8.0 gave us a new module ColocateHook, I try is today.
I set esbuild like this:
config :esbuild,
version: "0.25.4",
ex_cm...
New
I don’t suppose you can lazy load a library depending on runtime data? For example if it’s a certain user they can lazy load ‘library A’ ...
New
I use this pattern to handle user input before JS has loaded / hooks have mounted:
<button onclick="this.$clicked = true" phx-hook="M...
New
Ash is not triggering before_action hook’s callback function if the update action is atomic, but when I set require_atomic? false in the ...
New
Last Three Year's Trending
Hey guys I’ve made a guide on how to connect Quill to Phoenix.
For the sake of formatting it might be easier to view it on my Notion Doc...
New
Dear All
nb a minimal working – or rather not working – example of my issue is here:
https://github.com/llaisdy/demo
The two relevant ...
New
GOAL
In one of my practice projects, I have a list of items that are stored in a Postgres database and displayed as <li></li>...
New
Hello beloved forum people!
I am currently looking for an option to have a LiveView JS Hook which I can pass custom data to, fully clien...
New
I need to test that I can create a post having one category (chosen from an async loaded list) on my admin site.
I have a LiveComponent ...
New
Hi everyone!
I trying to create a Phoenix LiveView dependency to authorize the lifecycle stages with attach_hook/4 via on_mount/4 callba...
New
Context
I’m having some issues with getting a LiveView hook to fire when I assign things to the socket first. I have the following event ...
New
This is likely a feature request unless we’re overlooking something, but it would be a nice improvement to the developer experience if th...
New
Greetings, comrades.
At work, we have been converting some legacy LiveComponents into functional components. This typically involves mov...
New
Hey there.
I don’t know if this is intended behaviour, thus I wanted to open a discussion here before opening a bug report.
I tried to ...
New
I wanted to test this server-side hook.
def on_mount(:default, _params, _session, socket) do
socket =
socket
|> ass...
New
Hi,
I need to resizing iFrames’s heights to fit contents by obtaining the scrollHeight. I created a JS Hook and used it in heex.
heex
...
New
Hi everyone,
I’m currently working on a Phoenix LiveView project and I’ve encountered a challenge that I hope someone can help me with. ...
New
i am having an issue where i am attempting to push an event from a JS hook to a component. it is a live component, and i can see it is us...
New
I am a bit stumped…
I am trying to attach a life cycle hook to close flash messages automatically after 5 seconds.
I have this code:
d...
New
Trending Over Three Years
I’ve started experimenting with JS charts in LiveView and update the chart with realtime data using LV hooks. I’m able to add new datapoi...
New
Is there a way to pass initial values to a LiveView JS hook from the server?
Here’s my example LiveView:
defmodule FooWeb.PageLive do
...
New
Hi all,
as per title, I am considering the possibility to add git hooks to a Phoenix project.
We are a team af a few people (< 10) w...
New
I have a page in my Phoenix app with some LiveView code. When you click a button, it shows the Stripe credit card modal form via a Hook. ...
New
Following along with this example from the docs:
I’ve added this little test hook.
https://github.com/MorphicPro/morphic.pro/blob/live...
New
good Afternoon, I have a live_view component with a input hidden field “attached” to a phx-hook
1–in the template:
<form id="login_...
New
Hi!
I am able to send phx-click and phx-submit events to my child LiveComponent process by using phx_target: @myself on those elements, ...
New
I have a LiveView form where an error message is displayed along with the form if the form was invalid. Pretty standard stuff. I am try...
New
Hi,
It seems that by mistake I submitted the same topic before and apologize for that.
I’m using Liveview 0.18 and trying to integrate ...
New
We have a Channel-based web app that we’re putting into a LiveView component, however we have run into a suspected race condition in our ...
New
I’m using distillery release hooks for running ecto migrations when the app starts. I’ve followed the distillery guide but is not working...
New
Hi everybody,
For those not yet aware, it’s now possible to bootstrap a Phoenix app with some liveview using the --live flag.
The defau...
New
The sample phoenix app created with liveview, sets up a livesocket in the app.js. How do you deal with hooks if you have 20 liveview page...
New
CONTEXT
I have a custom scrollbar that I control with JavaScript. This code needs to be executed without too much delay, because otherwi...
New
I was trying to add timeline graphs to my current application.
The application uses Surface UI 0.6.1 and LiveView 0.16.x.
Throughout th...
New
Latest on Elixir Forum
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Manning Publications
45% off any item
ElixirCasts
10% off for life
The Pragmatic Studio
20% off any course
AppSignal
10% off for 12 months
Honeybadger
10% off for 12 months
Simply use coupon code "devtalk.com" or "elixirforum" at checkout!
Filter by Type:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #javascript
- #podcasts
- #code-sync
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








