Replacement for IPublishedCache.GetAtRoot()

I’ve just run into this issue (specifically as part of @prjseal ‘s Clean package - authors.cshtml).

Was the solution to use IDocumentNavigationQueryService instead, as per this PR thread?

Something like:

@inject Umbraco.Cms.Core.IPublishedContentQuery publishedContentQuery

@{
    AuthorList? authorList = publishedContentQuery?.ContentAtRoot()?.DescendantsOrSelf<AuthorList>()?.FirstOrDefault();
}

TIA!