3 ms·
Two Patterns for StimulusReflex Form Submissions
- ezis-wheezy 6y agoHey Julian, thanks for posting this. I'm still going through the post but this is targeted to some of the questions a developer looking at Stimulus Reflex has to consider. Do you think pulling prior art from something like LiveView is helpful as well? For example: https://elixirschool.com/blog/live-view-live-component/ https://elixirschool.com/blog/live-view-live-component/
- ezis-wheezy 6y agoI'm also curious about the recommendation to avoid form submission with SR.
- julianrubisch 6y agoI wasn’t aware of LiveComponent, thanks for that! Frankly, patterns around SR are just materializing but there’s for example https://github.com/joshleblanc/view_component_reflex https://github.com/joshleblanc/view_component_reflex that’s maybe comparable. CableReady is the Swiss Army knife, there’s a whole ecosystem forming around it, e.g. https://github.com/julianrubisch/futurism https://github.com/julianrubisch/futurism, a lazy loading gem by me or https://optimism.leastbad.com/ https://optimism.leastbad.com/, a remote form validation gem (presumably superseded by Rails 6.1/TL6, but who knows) You might want to follow me on twitter, I‘ll be posting my explorations there!