Stimulus.js 2.0
discourse.stimulusjs.org
Stimulus.js 2.0
1–10 of 140 posts
Re: Stimulus.js 2.0
#2Re: Stimulus.js 2.0
#3My only complaint/comment is that some of the HTML that I need to generate ends up being littered with so many data attributes, especially when combining multiple Stimulus controllers/behaviors.
Has anybody found a clean way around that in Rails templates?
Re: Stimulus.js 2.0
#4Good timing. There was talk of a fork brewing...
Wouldnt stimulus and turbolinks not work so great i would prefer using different libraries.
Re: Stimulus.js 2.0
#5Re: Stimulus.js 2.0
#6Stimulus has a very small surface area, but I find it really enjoyable to use when combined with Turbolinks. My only complaint/comment is that some of the HTML that I need to generate ends up being littered with so many data attributes, especially when combining multiple Stimulus controllers/behaviors. Has anybody found a clean way around that in Rails templates?
Re: Stimulus.js 2.0
#7Good timing. There was talk of a fork brewing...
Yeah. This is happening with all libraries by basecamp: They release something, they don‘t work on it for months (no commits, many open pull requests) and people believe it‘s dead. Then one day (today) they out of the blue release a new version which nobody was expecting. Wouldnt stimulus and turbolinks not work so great i would prefer using different libraries.
Re: Stimulus.js 2.0
#8Re: Stimulus.js 2.0
#9Earlier quoted context omitted.
Yeah. This is happening with all libraries by basecamp: They release something, they don‘t work on it for months (no commits, many open pull requests) and people believe it‘s dead. Then one day (today) they out of the blue release a new version which nobody was expecting. Wouldnt stimulus and turbolinks not work so great i would prefer using different libraries.
I like these libraries but have the same concerns. One alternative that might be worth a look is htmx (the new library based on intercooler.js): https://htmx.org/
Re: Stimulus.js 2.0
#10Earlier quoted context omitted.
I like these libraries but have the same concerns. One alternative that might be worth a look is htmx (the new library based on intercooler.js): https://htmx.org/
Htmx is more like all „we try to solve everything for you but fail“ solutions. The good part of stimulus is that it is only a binding library, no automatic content refetch etc. solution