mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-02-17 01:12:37 +01:00
Fix max call stack
This commit is contained in:
parent
c45a8030b4
commit
f20fb698bc
@ -880,7 +880,7 @@ const useCatalogState = () =>
|
||||
switch(requestedPage.current.requestType)
|
||||
{
|
||||
case RequestedPage.REQUEST_TYPE_NONE:
|
||||
if(activeNodes && activeNodes.length) return;
|
||||
if(currentPage) return;
|
||||
|
||||
if(rootNode.isBranch)
|
||||
{
|
||||
@ -908,7 +908,7 @@ const useCatalogState = () =>
|
||||
requestedPage.current.resetRequest();
|
||||
return;
|
||||
}
|
||||
}, [ isVisible, rootNode, activeNodes, activateNode, openPageById, openPageByOfferId, openPageByName ]);
|
||||
}, [ isVisible, rootNode, currentPage, activateNode, openPageById, openPageByOfferId, openPageByName ]);
|
||||
|
||||
useEffect(() =>
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user