Skip to content

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

Open
distoai[bot] wants to merge 3 commits intomainfrom
disto-fix-20230715-095404-0
Open

Fix for React Maximum update depth exceeded errror on search result pages#143
distoai[bot] wants to merge 3 commits intomainfrom
disto-fix-20230715-095404-0

Conversation

@distoai
Copy link
Copy Markdown

@distoai distoai Bot commented Jul 15, 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.
The error is also caused by an infinite loop in the FuzzyFinderNavItem function in the GlobalNavbar.tsx file. To fix the issue, we need to modify the FuzzyFinderNavItem function to prevent the infinite loop.
The error is also caused by an infinite loop in the useCalculatedNavLinkVariant function in the GlobalNavbar.tsx file. To fix the issue, we need to modify the dependencies of the useLayoutEffect hook.

DistoBot added 3 commits July 15, 2023 09:54
…riant function in the GlobalNavbar.tsx file. To fix the issue, we need to modify the useCalculatedNavLinkVariant function to prevent the infinite loop.
…m function in the GlobalNavbar.tsx file. To fix the issue, we need to modify the FuzzyFinderNavItem function to prevent the infinite loop.
…inkVariant function in the GlobalNavbar.tsx file. To fix the issue, we need to modify the dependencies of the useLayoutEffect hook.
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