Skip to content

Now if a row changed in the hook updated #779

Closed Answered by Flo0807
clifinger asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@clifinger
Comment options

Answer selected by clifinger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants