DEV Community

loading...

Discussion on: 💡 React Hooks: async function in the useEffect

Collapse
apperside profile image
Apperside

I think there is an error in the following sentence:

Async functions always return a promise so you will have the actual value until the Promise is fulfilled

It should be

Async functions always return a promise so you will NOT have the actual value until the Promise is fulfilled

Collapse
danialdezfouli profile image
Danial Dezfouli Author

Thank you, I made a grammatical error

Forem Open with the Forem app