Skip to main content

Function: resolveNavigationFrom

resolveNavigationFrom<M>(__namedParameters): Promise<ResolvedNavigationEntry<M>[]>

Use this function to retrieve an array of navigation entries (resolved collection, entity or entity custom_view) for the given path. You need to pass the app context that you receive in different callbacks, such as the save hooks.

It will take into account the navigation provided at the FireCMS level, as well as a schemaResolver if provided.

Type parameters#

Name
M

Parameters#

NameType
__namedParametersObject
__namedParameters.contextFireCMSContext
__namedParameters.pathstring

Returns#

Promise<ResolvedNavigationEntry<M>[]>

Defined in#

hooks/useResolvedNavigationFrom.tsx:64