Introduction to Stimulus Reflex

  Рет қаралды 17,799

GoRails

GoRails

Күн бұрын

Пікірлер: 45
@jordimarti1580
@jordimarti1580 4 жыл бұрын
I definitely want to see more about Stimulus Reflex!
@GorailsTV
@GorailsTV 4 жыл бұрын
You got it!
@oli2016
@oli2016 4 жыл бұрын
I've been reading about Pheonix live view and Rails Stimulus Reflex over the past couple of days. It's pretty exciting, it seems like a really elegant way to have reactive apps. I've always thought the huge amount of code on the front-end doesn't seem quite right.
@prophetjamz94
@prophetjamz94 4 жыл бұрын
I JUST had to do some AJAX code on a project for work... You sir are a hero
@dougson_
@dougson_ 2 жыл бұрын
Your channel is a gem! I've learn good stuffs about stimulus reflex. Thank you! Your vim setup is awesome, and If you don't mind, can you share how you got that working?
@GorailsTV
@GorailsTV 2 жыл бұрын
I used to use a thing called Janus for Vim but now I use a bunch of plugins. You can find them in my dotfiles repo. GitHub.com/excid3/dotfiles
@dougson_
@dougson_ 2 жыл бұрын
I appreciate the reply! Thanks a lot
@cartervisuals
@cartervisuals 4 жыл бұрын
More? Silly question... of course we want more.
@sethtucker8963
@sethtucker8963 4 жыл бұрын
Just worked this into a production project of mine. Wasn't exactly as easy as this demo was, but it sure beat writing all my own javascript for dynamically updating small partials on the page or dynamically changing data in modal windows.
@GorailsTV
@GorailsTV 4 жыл бұрын
Yeah! And cable ready should make a lot of those nuances easier. I'm making a new Trello clone using it and it's interesting to see the different approaches and mindset shift.
@burmashave
@burmashave 4 жыл бұрын
Would love to see more on this. The question I (always) have is: how well does it play with turbolinks?
@GorailsTV
@GorailsTV 4 жыл бұрын
Perfectly out of the box because it uses stimulus
@jeancarloschechnner1213
@jeancarloschechnner1213 4 жыл бұрын
Cool, I hope you make more videos about stimulus reflex, Thanks
@GorailsTV
@GorailsTV 4 жыл бұрын
Absolutely will do
@jigarbhatt7890
@jigarbhatt7890 4 жыл бұрын
Stimulus Reflex is awesome. Great explaination.
@alexggk
@alexggk 4 жыл бұрын
Yesterday I started building a shopping list application and I was thinking about how to save bought items and today you put this video on youtube, nice :) thank you
@GorailsTV
@GorailsTV 4 жыл бұрын
Perfect timing!
@ibjacked
@ibjacked 4 жыл бұрын
This looks really cool! Wouldn't replacing the entire dom introduce a noticeable redraw on anything more than a super simple page?
@GorailsTV
@GorailsTV 4 жыл бұрын
It is Dom diffed so only the parts that changed will be updated
@ibjacked
@ibjacked 4 жыл бұрын
@@GorailsTV Ok, ok, very cool! Gonna have to check this out :)
@GNUinos
@GNUinos 4 жыл бұрын
Great! I love Stimulus Reflex!
@nandasuhendra3495
@nandasuhendra3495 4 жыл бұрын
its very amazing, i wanna try it on my project
@lucasarantes9028
@lucasarantes9028 4 жыл бұрын
Great video! I was wondering if it's possible to trigger an update on that page when someone else, in a different browser, adds a todo, is it?
@GorailsTV
@GorailsTV 4 жыл бұрын
I think you'd have to use cable ready for that. Don't think there's anything in stimulus reflex itself for it.
@LuisCarlosHernandezMacias
@LuisCarlosHernandezMacias 3 жыл бұрын
Hi, just found this and it looks amazing. But I got a question, do you see HotWire and stimulusReflex living together in the same project?
@GorailsTV
@GorailsTV 3 жыл бұрын
They definitely can. I'd recommend trying to build everything you can. With Hotwire first and then jump into reflex as needed.
@hellosub01
@hellosub01 4 жыл бұрын
Is it possible to use Google MAP API like Places or Static map in Stumulus Reflex?
@GorailsTV
@GorailsTV 4 жыл бұрын
Yep, check out the episode I did on it recently. gorails.com/episodes/google-maps-places-autocomplete-with-rails
@hellosub01
@hellosub01 4 жыл бұрын
@@GorailsTV Thank you for the reply. I watched that episode like 5 times which was awesome. However, what I asked was about Stimulus Reflex not about Stimulus js. I just want to know if Google MAP API can be implemented without Javascript at least on the face of it. BTW, I am a big fan of yours. Thanks.
@carlosramseyer4617
@carlosramseyer4617 4 жыл бұрын
@@hellosub01 Hi, take a look at this, it might help you meetandrearocca.com/blog/reactive-map-with-rails-stimulus-reflex-and-mapbox/
@skalippanbalippan6972
@skalippanbalippan6972 4 жыл бұрын
is there is a way to debug stimulus?
@alexggk
@alexggk 4 жыл бұрын
Do I need Redis if I want to deploy an application that uses Stimulus reflex on production? Some functionality does not work.
@sethtucker8963
@sethtucker8963 4 жыл бұрын
Yes. I was using Postgres's pub/sub adapter for ActionCable, but it looks like the payloads that StimulusReflex sends are too large, so the 'reflexes' don't end up being fully executed
@owlboom6458
@owlboom6458 4 жыл бұрын
@@sethtucker8963 There is 8k limit size for data payload in postgresql subpub ac adapter...
@elisson357
@elisson357 4 жыл бұрын
Impressive!
@MatthewKennedyUK
@MatthewKennedyUK 4 жыл бұрын
What’s the difference between Stimulus JS and Stimulus Reflex?
@GorailsTV
@GorailsTV 4 жыл бұрын
Stimulus is the foundation and is just a Javascript library. Reflex uses Stimulus to refresh the page using ActionCable.
@ministerstein
@ministerstein 4 жыл бұрын
What is the difference between Stimulus Reflex and turbolinks?
@GorailsTV
@GorailsTV 4 жыл бұрын
Totally different. Turbolinks intercepts links and makes Ajax requests to navigate to another page faster. Stimulus Reflex can listen to any JavaScript event and uses websockets to update the page but does no navigation.
@ministerstein
@ministerstein 4 жыл бұрын
@@GorailsTV Ah, I see. Thanks :)
@bliaxiong6439
@bliaxiong6439 4 жыл бұрын
is that a ninefold t-shirt?...lol, i have one of those!!!
@GorailsTV
@GorailsTV 4 жыл бұрын
Hahaha yes it is! I’ve got two of them. 🤓
@vhuerta
@vhuerta 4 жыл бұрын
So know we need to learn this weird reflex syntax in order to avoid learn js, cool
@GorailsTV
@GorailsTV 4 жыл бұрын
Hahaha
@93stiven
@93stiven 2 жыл бұрын
rails 7 please :(
Dynamic Select Fields in Rails using Hotwire
19:46
GoRails
Рет қаралды 25 М.
Rails Tutorial | Reactive Interfaces with Stimulus Reflex
9:16
Techmaker Studio
Рет қаралды 6 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 15 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 651 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Episode #236 - Google Maps API with StimulusJS
17:20
Drifting Ruby
Рет қаралды 6 М.
Docker Basics for Ruby on Rails Developers
13:27
GoRails
Рет қаралды 27 М.
A Tour of Stimulus.js
25:34
webcrunch
Рет қаралды 10 М.
How to Use Stimulus JS 2.0: Values and CSS Classes API
10:44
What is Hotwire?
6:55
The Pragmatic Studio
Рет қаралды 12 М.
How to use Hotwire in Rails
24:26
GoRails
Рет қаралды 56 М.
How to add UI interactions to Rails with Stimulus
20:03
Sam Johnson
Рет қаралды 1 М.
Episode #275 - Hotwire
27:41
Drifting Ruby
Рет қаралды 12 М.
Reactive Stimulus Values in Ruby on Rails 7
10:15
Deanin
Рет қаралды 6 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 15 МЛН