pass context to after-resolve hook