@hfalucas I think either way is fine, but I would probably make a request in the parent component, so that all API requests (fetch posts, delete post) would be isolated in a single component.
If so how you guys deal with a possible request error to put it back on the array?
You would not be able to check if request has finished successfully, with the code above, because your component would be destroyed at this point. You would have to wait until request is finished and only then emit an event. So I guess making a request in parent component fits more in this case, as you can easily re-add deleted post if request fails.