dealing w/ complex form flows?
I've been using a new pattern and I'm in
getNameInput() {
return new Promise(res => {
// listen for input
if (looksOk) {
res(val);
}
});
}
inputFlow() {
const name = await getNameInput()
}
-
Show this thread
-
The breakthrough for me was to start thinking of inputs like I think of network requests. Yes it is not from the network, but it is an async "request" with failure modes and latency.
6 replies 2 retweets 33 likesShow this thread -
-
Replying to @samccone @_developit
who am i meant to be imagining ran this command
3:32 PM - 3 Jun 2019
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 