DEV Community

Discussion on: Building Dynamic Breadcrumbs in NextJS

Collapse
 
florentinog9 profile image
FlorentinoG9

it updates it self with the useMemo's dependencies array [router.asPath, router.pathname, router.query, getTextGenerator, getDefaultTextGenerator]

I think you could take off the router.query from the dependencies since the router.query is an object and will not know if the values of that object are changing but will have to try that