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);
|
||||
|
||||
setIsLoading(true);
|
||||
}, [location]);
|
||||
}, [location.pathname]);
|
||||
|
||||
const onSelect = (e) => {
|
||||
const url = isManagement()
|
||||
|
@ -64,7 +64,7 @@ const DeleteData = (props) => {
|
||||
if (currentTab !== -1 && data.length) setCurrentTabId(currentTab.id);
|
||||
|
||||
setIsLoading(true);
|
||||
}, [location]);
|
||||
}, [location.pathname]);
|
||||
|
||||
const onSelect = (e) => {
|
||||
navigate(
|
||||
|
@ -121,7 +121,7 @@ const DeveloperToolsWrapper = (props) => {
|
||||
}
|
||||
|
||||
setIsLoading(true);
|
||||
}, [location]);
|
||||
}, [location.pathname]);
|
||||
|
||||
useEffect(() => {
|
||||
ready && startTransition(load);
|
||||
|
@ -86,7 +86,7 @@ const SecurityWrapper = (props) => {
|
||||
if (currentTab !== -1 && data.length) setCurrentTabId(currentTab.id);
|
||||
|
||||
load();
|
||||
}, [location]);
|
||||
}, [location.pathname]);
|
||||
|
||||
const onSelect = (e) => {
|
||||
navigate(
|
||||
|
Loading…
Reference in New Issue
Block a user