You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.
A limitation in unparser makes usual component calls without arguments fail in all blocks that are send to the client (evaluate_ruby, expect_evaluate_ruby, Mount, etc.), example:
class Comp
include Hyperloop::Component::Mixin
def render
"whatever"
end
end
class SuperComp
include Hyperloop::Component::Mixin
def render
Comp()
end
end
Workaround is simple, pass a silly arg:
class Comp
include Hyperloop::Component::Mixin
param :silly
def render
"whatever"
end
end
class SuperComp
include Hyperloop::Component::Mixin
def render
Comp(silly: 'arg')
end
end
The text was updated successfully, but these errors were encountered:
A limitation in unparser makes usual component calls without arguments fail in all blocks that are send to the client (evaluate_ruby, expect_evaluate_ruby, Mount, etc.), example:
Workaround is simple, pass a silly arg:
The text was updated successfully, but these errors were encountered: