Skip to main content
Version: 2.0.0-alpha

Function: resolveNavigationFrom

resolveNavigationFrom<M, UserType>(__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.

Type parameters

NameType
MM
UserTypeextends User

Parameters

NameType
__namedParametersObject
__namedParameters.contextFireCMSContext<UserType>
__namedParameters.pathstring

Returns

Promise<ResolvedNavigationEntry<M>[]>

Defined in

lib/src/hooks/useResolvedNavigationFrom.tsx:66