[api] [fix] Don't install resource dependencies in `resource.use`. Instead, wait until the resource method has been called before installing dependencies.