Skip to main content
Version: 2.0.0

Function: resolveNavigationFrom

resolveNavigationFrom<M, UserType>(«destructured»): 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
«destructured»Object
› contextFireCMSContext<UserType>
› pathstring

Returns

Promise<ResolvedNavigationEntry<M>[]>

Defined in

lib/src/hooks/useResolvedNavigationFrom.tsx:66

Enterprise or start-up?

Learn how to get the most out of your project with the help of our consulting team.
Learn more
Sign up to our newsletter to get the latest news and updates. No spam!