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
Using {:then} or {:catch} throws an error compiling, saying there is whitespace expected (after the then/catch). If whitespace is added, {:then } and {:catch } are accepted, and afaict things work fine with no identifier to store the resolution or rejection value in.
I'm not 100% clear on whether we want to allow identifier-less {:then} and {:catch} blocks (probably? It's not in the docs but I don't see the harm), but if so, we shouldn't be requiring whitespace.
The text was updated successfully, but these errors were encountered:
I'm making a dialog component that closes after a certain promise is resolved and changes its content based on the promise state. In this case, the resolved/rejected data is irrelevant:
Using
{:then}
or{:catch}
throws an error compiling, saying there is whitespace expected (after thethen
/catch
). If whitespace is added,{:then }
and{:catch }
are accepted, and afaict things work fine with no identifier to store the resolution or rejection value in.I'm not 100% clear on whether we want to allow identifier-less
{:then}
and{:catch}
blocks (probably? It's not in the docs but I don't see the harm), but if so, we shouldn't be requiring whitespace.The text was updated successfully, but these errors were encountered: