Commit 1d60071b by zhaochengxiang

bug fix

parent 8900a582
......@@ -144,7 +144,10 @@ const FC = (props) => {
React.useEffect(() => {
getElements()
getPublishStatus()
//eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
React.useEffect(() => {
const $$keyword = $keyword.pipe(debounceTime(1000)).subscribe((keyword) => {
setArgsAndPage({ keyword })
})
......@@ -173,7 +176,7 @@ const FC = (props) => {
window?.removeEventListener("storage", storageChange)
}
//eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
}, [node, args])
React.useEffect(() => {
if (node) {
......
......@@ -177,7 +177,10 @@ const FC = (props) => {
getElements()
getResourceSortingStatus()
getResourceRelatedMetadataStatus()
//eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
React.useEffect(() => {
const $$keyword = $keyword.pipe(debounceTime(1000)).subscribe((keyword) => {
setArgsAndPage({ keyword })
})
......@@ -206,7 +209,7 @@ const FC = (props) => {
window?.removeEventListener("storage", storageChange)
}
//eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
}, [node, args])
React.useEffect(() => {
if (node) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment