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
constfooInput=()=>go(function*(){const{ value }=yielde.input()const{ click }=yielde.button('Insert')return{insert: snapshot(value,click)}})
That wouldn't work, both values was undefined, so I need to do:
constfooInput=()=>go(function*(){const{ value }=yielde.input().use({value: 'value'})const{ click }=yielde.button('Insert').use({click: 'click'})return{insert: snapshot(value,click)}})
That's already very redundant. But still, I couldn't access insert from other components, so what I ended up doing was:
constfooInput=()=>component(o=>go(function*(){const{ value }=yielde.input().use({value: 'value'})const{ click }=yielde.button('Insert').use({click: 'click'})return{insert: snapshot(value,click)}}).output({insert: o.insert}))
Am I missing something? Or is it that chain can never catch available observables that weren't remapped with use, and go won't output them, even with the last line it telling so? Am I misusing go when it is supposed to be something else?
The text was updated successfully, but these errors were encountered:
I've tried writing, by the documentation:
That wouldn't work, both values was undefined, so I need to do:
That's already very redundant. But still, I couldn't access
insert
from other components, so what I ended up doing was:Am I missing something? Or is it that
chain
can never catch available observables that weren't remapped withuse
, andgo
won't output them, even with the last line it telling so? Am I misusing go when it is supposed to be something else?The text was updated successfully, but these errors were encountered: