I have some state that gets updated async that I would like to wrap inside a function call (to modularize the code).
Concretely, I have a isLoggedIn stat
isLoggedIn