mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-02-20 02:32: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)
|
switch(requestedPage.current.requestType)
|
||||||
{
|
{
|
||||||
case RequestedPage.REQUEST_TYPE_NONE:
|
case RequestedPage.REQUEST_TYPE_NONE:
|
||||||
if(activeNodes && activeNodes.length) return;
|
if(currentPage) return;
|
||||||
|
|
||||||
if(rootNode.isBranch)
|
if(rootNode.isBranch)
|
||||||
{
|
{
|
||||||
@ -908,7 +908,7 @@ const useCatalogState = () =>
|
|||||||
requestedPage.current.resetRequest();
|
requestedPage.current.resetRequest();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}, [ isVisible, rootNode, activeNodes, activateNode, openPageById, openPageByOfferId, openPageByName ]);
|
}, [ isVisible, rootNode, currentPage, activateNode, openPageById, openPageByOfferId, openPageByName ]);
|
||||||
|
|
||||||
useEffect(() =>
|
useEffect(() =>
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user