You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the first code example for phx_change.exs, at the end of the validate_product event handler you forgot to reassign 'form' to the socket.
It currently looks like this:
form = to_form(product_params, as: :product, errors: errors)
{:noreply, socket}
In the first code example for phx_change.exs, at the end of the
validate_product
event handler you forgot to reassign 'form' to the socket.It currently looks like this:
instead of this:
The text was updated successfully, but these errors were encountered: