Client:Pages:PotalSettins: change useEffect dependency
This commit is contained in:
parent
c750dd62e9
commit
03b5d87b98
@ -125,7 +125,7 @@ const DataManagementWrapper = (props) => {
|
|||||||
if (currentTab !== -1 && data.length) setCurrentTabId(currentTab.id);
|
if (currentTab !== -1 && data.length) setCurrentTabId(currentTab.id);
|
||||||
|
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
}, [location]);
|
}, [location.pathname]);
|
||||||
|
|
||||||
const onSelect = (e) => {
|
const onSelect = (e) => {
|
||||||
const url = isManagement()
|
const url = isManagement()
|
||||||
|
@ -64,7 +64,7 @@ const DeleteData = (props) => {
|
|||||||
if (currentTab !== -1 && data.length) setCurrentTabId(currentTab.id);
|
if (currentTab !== -1 && data.length) setCurrentTabId(currentTab.id);
|
||||||
|
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
}, [location]);
|
}, [location.pathname]);
|
||||||
|
|
||||||
const onSelect = (e) => {
|
const onSelect = (e) => {
|
||||||
navigate(
|
navigate(
|
||||||
|
@ -121,7 +121,7 @@ const DeveloperToolsWrapper = (props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
}, [location]);
|
}, [location.pathname]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
ready && startTransition(load);
|
ready && startTransition(load);
|
||||||
|
@ -86,7 +86,7 @@ const SecurityWrapper = (props) => {
|
|||||||
if (currentTab !== -1 && data.length) setCurrentTabId(currentTab.id);
|
if (currentTab !== -1 && data.length) setCurrentTabId(currentTab.id);
|
||||||
|
|
||||||
load();
|
load();
|
||||||
}, [location]);
|
}, [location.pathname]);
|
||||||
|
|
||||||
const onSelect = (e) => {
|
const onSelect = (e) => {
|
||||||
navigate(
|
navigate(
|
||||||
|
Loading…
Reference in New Issue
Block a user