Move `isLoading` outside of actions