TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Hotwire Spark: live reloading for Rails applications

12 pointsby juliendc5 months ago

2 comments

graypegg5 months ago
This appears to be using a simple file watcher based on glob patterns to detect changes [0] so I&#x27;d be curious if we can configure that list to include ViewComponent instances as well! That may be harder since it&#x27;s not just a static asset, and the keys in the config do appear to be hard coded [1] so I think each asset type has some quirks around how it can be hot reloaded.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;basecamp&#x2F;hotwire-spark&#x2F;blob&#x2F;main&#x2F;lib&#x2F;hotwire&#x2F;spark&#x2F;engine.rb">https:&#x2F;&#x2F;github.com&#x2F;basecamp&#x2F;hotwire-spark&#x2F;blob&#x2F;main&#x2F;lib&#x2F;hotw...</a><p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;basecamp&#x2F;hotwire-spark&#x2F;blob&#x2F;af57eeb22c6429adaeaabaad92db5ca9fa8e885f&#x2F;lib&#x2F;hotwire&#x2F;spark&#x2F;installer.rb#L29">https:&#x2F;&#x2F;github.com&#x2F;basecamp&#x2F;hotwire-spark&#x2F;blob&#x2F;af57eeb22c642...</a>
chris123215 months ago
This rapid feedback seems like it will be especially useful when iterating on CSS designs