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
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
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: