0

So I am testing Hotwire in Rails, every thing is working as expected. But if I just generate simple CRUD scaffold for rails and call new action, I can see Turbo drive is using fetch by default and page don't referesh. But when I was reading the tutorial, I read that by default Turbo drive will only load content of <head></head> only once on first request and I will not load the <head></head> again on second request.

However when I check the Network tab on Chrome, I can see that <head></head> is getting loaded for every request. With Turbo Stream I am able to just append/prepend the content but I was hoping I can achieve same thing just by using default Turbo drive. So my question is how can I avoid loading content of <head></head> in every request ? What am I doing wrong ? I have not written any code, I just use scaffold to generate simple CRUD app.

r3b00t
  • 6,953
  • 6
  • 27
  • 37
  • Hotwire enables a way of development where you can make SPA features by using javascript elements. The Hotwire Handbook is a great place to learn about the features of hotwire and there are a lot of videos on youtube. – yungindigo Oct 15 '22 at 07:19

0 Answers0