forked from fixin.me/fixin.me
Rewrite stream rendering to avoid client-side expanding
* adding streams in client breaks things (e.g. autofocus) * some tasks need to be performed in one stream action to avoid flickering (e.g. table row substitution)
This commit is contained in:
@@ -103,8 +103,6 @@ module ApplicationHelper
|
||||
end
|
||||
|
||||
def render_turbo_stream(partial, locals)
|
||||
# TODO: extend with smth like "if outside of rendering, render; otherwise
|
||||
# appendChild() template within current render"
|
||||
"Turbo.renderStreamMessage('#{j(render partial: partial, locals: locals)}'); return false;"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user