-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
live reload when on an error page #58
Comments
That makes sense. The error middleware is probably before the LiveReload middleware. |
I tried putting live reload middleware in front by hacking BTW, this is what I added to def registered
@_registered ||= ActiveSupport::OrderedHash.new
end
def register_first(name, namespace=nil, &block)
return if registered.key?(name.to_sym) &&
!registered[name.to_sym].is_a?(String)
old = registered
reordered = {}
reordered[name.to_sym] = if block_given?
block
elsif namespace
namespace
end
reordered.merge! old
@_registered = reordered
end |
Sounds like this could be fixed by the extension priority ordering in v4, right? |
I'm doing some issue-gardening 🌿🌷🌾 and came across this issue. Sorry that this has lingered for quite a while! Does this work better under v4? If so can we close this issue? (this repo is maintained by a few people contributing their free time, unfortunately we can't solve every issue on our own, so help from others is needed for some of the more exotic issues that crops up) |
@sandstrom I'll check how it works in v4. Thanks for a ping. |
Live reload works great until an exception is not raised. When a stacktrace is shown, live reload will no longer reload the page on file change. I have to do that manually by hitting F5 in the browser.
The text was updated successfully, but these errors were encountered: