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
The compiler attaches the ...(state)callExpression onto the .then instead of the operation. This makes sense given how everything was originally designed - however it would be really nice not to have to use alterState in order to do this.
What we really want is the compiler to know that (in this case), get is an operation that needs to be called with state and add the call expression to that instead:
(function(){returnexecute(get("http://localhost:9292?flip=left")(state).then(console.log.bind(console)));// <== callExpression on Operation instead})();
The text was updated successfully, but these errors were encountered:
If you try and create an expression like this:
Turns into:
The compiler attaches the
...(state)
callExpression
onto the.then
instead of the operation. This makes sense given how everything was originally designed - however it would be really nice not to have to usealterState
in order to do this.What we really want is the compiler to know that (in this case),
get
is an operation that needs to be called with state and add the call expression to that instead:The text was updated successfully, but these errors were encountered: