by andruby · 6y ago · 0 comments
One thing I didn't understand from the video is how the :post_updated callback worked. It prepends the updated post to the list of posts. How come that doesn't lead to the same post being double in the list?
The same happens on the client. If the server emits the same DOM ID, the client just updates it in place too.