I've resisted going to Turbo so far (not that I see it as bad but development timescales to convert projects etc) but it really seems to many situations easily now. Now to choose the first project...
Great episode. Really enjoyed it. I noticed the flash message for the destroy method is inconsistent. For example, around 12:06 in the video you delete the second record in your example, you get a confirmation but not the flash message "successfully destroyed". I'm guessing the turbo_frame_tag is causing some sort of issue.
Yes. I probably wouldn’t do that on a real app. If I were, I would limit the pagination to something like 5 and also make sure that the responses were very fast. If I start seeing memory issues or scaling problems in the actioncable side, I would rethink this to either do a refresh interval or switch to any cable.
Thanks for the video.
I run Stimulus plus Turbo in production for months now. I have exactly zero problems.
Petr
https://github.com/driftingruby/template
The asset "application.css" is not present in the asset pipeline.
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
Unfortunatly there is no automatic asset compiling active and rails assets:precompile failed. Any other hint from your side to fix this issue?
Let's say we're displaying the usual 25 records per pagination.
Isn't this code creating 25 requests to the backend for each one of the projects, + 25 websockets subscriptions?