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

Promise shows as pending even after it's resolved #86

Open
lbogdan opened this issue May 27, 2021 · 1 comment
Open

Promise shows as pending even after it's resolved #86

lbogdan opened this issue May 27, 2021 · 1 comment

Comments

@lbogdan
Copy link

lbogdan commented May 27, 2021

Consider this code:

const testPromise = new Promise((resolve) =>
  setTimeout(() => resolve(42), 1000)
);

testPromise.then(() => console.log(testPromise));

Expected output (from Chrome's console):

image

Actual output:

image

Reproduction sandbox: https://codesandbox.io/s/console-feed-resolved-promise-xye1i

Related CodeSandbox issue: codesandbox/codesandbox-client#5830

@isaacking5
Copy link

Hi.. @ALL

Is anyone got any workaround for this issue? If yes, let me know the workaround, I am too stuck with the issue.

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

No branches or pull requests

2 participants