-
how I can get the old value of a row in updated hooks? @impl Backpex.LiveResource
def on_item_updated(socket, user) do
socket
end or if you have a hint for me to re-send the confirmation email if row email changed |
Beta Was this translation helpful? Give feedback.
Answered by
Flo0807
Jan 17, 2025
Replies: 1 comment 1 reply
-
Hey, you can fetch the updated item from the socket assigns. @impl Backpex.LiveResource
def on_item_updated(socket,_item) do
IO.inspect(socket.assigns.item, label: "New item")
end |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
clifinger
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, you can fetch the updated item from the socket assigns.