Should the function always be sync or async? i mean, can it be sync and async on condition (yes it can) or it is a bad practice?
— Yes, that's bad
— Make it always sync or always async
— Ive heard something about it, but more info?
— Even if the asyncness is just setTimeout(..., 0); or return Promise.resolve(...)
— Hmm.. okay
— Sync for user interaction, most of the cases, async for fetches
— Async for both, always
— Not sure what kind of user interaction you normally do
— But i dont want to stop the whole app because of a interaction.. do i?