Skip to content

Fix for React Maximum update depth exceeded errror on search result pages#155

Open
distoai[bot] wants to merge 1 commit intomainfrom
disto-fix-20230717-172746-380
Open

Fix for React Maximum update depth exceeded errror on search result pages#155
distoai[bot] wants to merge 1 commit intomainfrom
disto-fix-20230717-172746-380

Conversation

@distoai
Copy link
Copy Markdown

@distoai distoai Bot commented Jul 17, 2023

Root Cause:

The React Maximum update depth exceeded error is occurring on the search result pages.

Steps to fix:

The error is caused by an infinite loop in the useCalculatedNavLinkVariant function in the GlobalNavbar.tsx file. To fix the issue, we need to modify the useCalculatedNavLinkVariant function to prevent the infinite loop.

…riant function in the GlobalNavbar.tsx file. To fix the issue, we need to modify the useCalculatedNavLinkVariant function to prevent the infinite loop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants