How to Optimize Menu Performance?
Retrieving Menu Data on the Server Side
import { getMenu } from '@akinon/next/data/server';
// Fetch menu data up to 2 levels deep
const response = await getMenu({ depth: 2});
const menu = menuGenerator(response);Retrieving Menu Data on the Client Side
Last updated
Was this helpful?

