Hotwire Spark is a live-reloading system for Hotwire applications. It enhances your development feedback loop by detecting source code changes and updating the page smoothly without requiring a manual reload.
...
group :development do
...
gem "hotwire-spark"
end
bundle
...
Rails.application.configure do
...
config.hotwire.spark.html_paths += %w[ content ]
config.hotwire.spark.html_extensions += %w[ md ]
end
Uncomment action cable engine from Rails configuration:
...
require "action_cable/engine"
...
Create the cable configuration file:
development:
adapter: async
Restart the development server to apply the new configuration.
Commit: Hotwire Spark