Added the ability to resolve promises in components