DEV Community

Discussion on: useStateWithPromise: a custom hook to await state updates of useState

Collapse
 
nvdung0616 profile image
NGUYỄN VĂN DŨNG • Edited

Hello Yusuf Aran,
Thank you so much, your article is very useful.
I'm new guy and started with react native project.
I got same problem with you in this your article.

Currently, I used useStateWithPromise to solve problem for temporaty in my project.

Do yo have any new approach to solve this problem ?

Collapse
 
ysfaran profile image
Yusuf Aran • Edited

Hey Nguyen!

I am happy to hear that you find my article useful.

As I stated in my conclusion, you should probably not use useStateWithPromise and no, unfortunatly I have no new or better solution yet.

I could try to help you with your case if you share some code (ideally with a codesandbox).