Might require some refactoring of the API. Actual asynchronous call needs to be outside of the component.