Hello! Sorry, I missed your last message. Here's a fresh PR to update favorite counts and heart animations.
First commit is to update favorite counts using turbo streams.
Second and third commits are two different ways of updating heart toggle: one by custom events and the other by Stimulus Outlets API.
My understanding is that custom events used to be idiomatic way to handle cross controller communications in Stimulus before they release Outlets API with Stimulus 3.2.
Hello! Sorry, I missed your last message. Here's a fresh PR to update favorite counts and heart animations.
First commit is to update favorite counts using turbo streams.
Second and third commits are two different ways of updating heart toggle: one by custom events and the other by Stimulus Outlets API.
My understanding is that custom events used to be idiomatic way to handle cross controller communications in Stimulus before they release Outlets API with Stimulus 3.2.