kirillplatonov / hotwire-livereload

Live reload gem for Hotwire Rails apps.
MIT License
483 stars 28 forks source link

Not seeing code changes after reload. #63

Open mirandashort opened 1 month ago

mirandashort commented 1 month ago

I'm not sure if this is related to https://github.com/kirillplatonov/hotwire-livereload/issues/49

Upon refreshing my page, I see this (is this expected?):

Finished "/cable" [WebSocket] for ::1 at 2024-09-30 14:07:04 -0400
Turbo::StreamsChannel stopped streaming from hotwire-livereload
Started GET "/cable" for ::1 at 2024-09-30 14:07:04 -0400
Started GET "/cable" [WebSocket] for ::1 at 2024-09-30 14:07:04 -0400
Successfully upgraded to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: Upgrade, HTTP_UPGRADE: websocket)

Currently running:

    rails (7.1.4)
      actioncable (= 7.1.4)
      actionmailbox (= 7.1.4)
      actionmailer (= 7.1.4)
      actionpack (= 7.1.4)
      actiontext (= 7.1.4)
      actionview (= 7.1.4)
      activejob (= 7.1.4)
      activemodel (= 7.1.4)
      activerecord (= 7.1.4)
      activestorage (= 7.1.4)
      activesupport (= 7.1.4)
      bundler (>= 1.15.0)
      railties (= 7.1.4)

    hotwire-livereload (1.4.1)
      actioncable (>= 6.0.0)
      listen (>= 3.0.0)
      railties (>= 6.0.0)

I have followed the installation guides and do have the following set in development.rb

config.hotwire_livereload.reload_method = :turbo_stream

My file is under /app/javascript so my understanding is I should be seeing my code changes by default.