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
Mextends Record<string, any>
UserTypeextends User

Parameters

NameType
__namedParametersObject
__namedParameters.contextFireCMSContext<UserType, AuthController<UserType>>
__namedParameters.pathstring

Returns

Promise<ResolvedNavigationEntry<M>[]>

Defined in

lib/src/hooks/useResolvedNavigationFrom.tsx:66

Need a hand?

We are happy to offer consulting services to help you get the most out of FireCMS.
Get in touch