Last active
October 23, 2022 17:10
-
-
Save dioxmio/8de3039006ebc8a4e010fe200075e0e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = Promise.resolve(true); | |
async function fetchData() { return data } | |
// ✅ result is false even though the underlying promise is the same | |
fetchData() === fetchData() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment