Latest #hooks Threads Top

netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
kamaroly
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
fteschke
I use this pattern to handle user input before JS has loaded / hooks have mounted: <button onclick="this.$clicked = true" phx-hook="M...
New
keep_zen
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
slouchpie
Greetings, comrades. At work, we have been converting some legacy LiveComponents into functional components. This typically involves mov...
New
nduitz
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
Liam_or
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
Liam_or
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
johnny75710
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
Hermanverschooten
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 Top

This Month's Trending Top

netoum
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 Top

Liam_or
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
slouchpie
Motivation: I want to write <.relative_datetime timestamp={my_schema.inserted_at} /> and to get this in my browser: while oth...
New
keep_zen
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
Liam_or
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
fteschke
I use this pattern to handle user input before JS has loaded / hooks have mounted: <button onclick="this.$clicked = true" phx-hook="M...
New
kamaroly
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 Top

Morzaram
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
llaisdy
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
coen.bakker
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&gt...
New
larshei
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
amaterasu
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
FabianDaniel00
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
aNerdInTheHand
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
kccarter
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
slouchpie
Greetings, comrades. At work, we have been converting some legacy LiveComponents into functional components. This typically involves mov...
New
nduitz
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
coen.bakker
I wanted to test this server-side hook. def on_mount(:default, _params, _session, socket) do socket = socket |> ass...
New
onurozgurozkan
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
johnny75710
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
charlottemoche
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
Hermanverschooten
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 Top

alvises
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
sodapopcan
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
ca1989
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
neurodynamic
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
polypush135
Following along with this example from the docs: I’ve added this little test hook. https://github.com/MorphicPro/morphic.pro/blob/live...
New
eddyraz
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
danday
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
Bumppoman
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
didus
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
njwest
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
adrian
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
Sanjibukai
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
graffic
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
coen.bakker
CONTEXT I have a custom scrollbar that I control with JavaScript. This code needs to be executed without too much delay, because otherwi...
New
larshei
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
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement