Around minute 12 he is iimplementing the update part with temporary_assigns and phx-update=“prepend”, I got mind blown, BUT, I’m having this error when I update:
** (RuntimeError) found duplicate ID 4 for component ChirpWeb.PostLive.PostComponent w
hen rendering template
And I quadrupled check the code. The DOM still gets updated, but I would like to have things correct, if this suppose to happen?
Sorry for giving you an incomplete answer. I changed the id: :modal into the :id I passed into the optskw. My situation is I have to re-use the component several times in a page so using the same :id is giving issues.