Skip to content

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

Open
distoai[bot] wants to merge 3 commits intomainfrom
disto-fix-20230721-011309-397
Open

Fix for React Maximum update depth exceeded errror on search result pages#162
distoai[bot] wants to merge 3 commits intomainfrom
disto-fix-20230721-011309-397

Conversation

@distoai
Copy link
Copy Markdown

@distoai distoai Bot commented Jul 21, 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 21, 2023 01:13
…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