a bit more progress
This commit is contained in:
parent
a9ae4f9888
commit
2b0d8bc2c6
8 changed files with 109 additions and 28 deletions
|
|
@ -22,7 +22,7 @@ interface CallBlockProps extends State2Props<CallBlockState> {
|
|||
}
|
||||
|
||||
export function CallBlock({ state: {kind, env, fn, input, resolved, rollback }, setState, onResolve }: CallBlockProps) {
|
||||
const setResolved = (resolved: Dynamic) => {
|
||||
const setResolved = (resolved?: Dynamic) => {
|
||||
setState({kind, env, fn, input, resolved, rollback});
|
||||
}
|
||||
|
||||
|
|
@ -53,7 +53,11 @@ export function CallBlock({ state: {kind, env, fn, input, resolved, rollback },
|
|||
makeTheCall(input, fnState);
|
||||
}
|
||||
else {
|
||||
setFn(fnState);
|
||||
// setFn(fnState);
|
||||
setResolved(undefined);
|
||||
onResolve({
|
||||
kind, env, fn: fnState, input, resolved: undefined, rollback
|
||||
});
|
||||
}
|
||||
}
|
||||
const onInputResolve = (inputState) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue