Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve promises in the console #1619

Merged
merged 3 commits into from
Jan 12, 2021
Merged

Conversation

jtoar
Copy link
Contributor

@jtoar jtoar commented Jan 9, 2021

Another way of abstracting away the need for top-level await in the redwood console, by automatically resolving promises (cc @mojombo from today's contributor's meetup).

A really nice copy-paste fix I took from the resources referenced in #1613 (comment) ("hack the eval").

Also tagging @peterp just in case you want to take a look at this one too. Guled brought up the good point that even if we enable top-level await, it might be annoying to have to type "await ..." all the time.

@github-actions
Copy link

github-actions bot commented Jan 9, 2021

@peterp
Copy link
Contributor

peterp commented Jan 9, 2021

Nice!

@thedavidprice thedavidprice merged commit c6adf9d into main Jan 12, 2021
@thedavidprice thedavidprice deleted the ds-console-await-promises branch January 12, 2021 23:11
@thedavidprice thedavidprice added this to the next release milestone Jan 12, 2021
dac09 added a commit to dac09/redwood that referenced this pull request Jan 14, 2021
…ender-p1

* 'main' of github.com:redwoodjs/redwood:
  v0.23.0
  GH Action PR Comment: Formatting
  add learn.rwjs.com repo to contributors (redwoodjs#1634)
  update PR Package Action formatting
  Updated All-Contributors Data (redwoodjs#1621)
  sync yarn.lock (redwoodjs#1632)
  Resolve promises in the console (redwoodjs#1619)
  Replace prisma deprecated fineOne() -> findUnique() (redwoodjs#1629)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants