mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: update fetching logic
This commit is contained in:
parent
17c539658b
commit
5c87e3510c
@ -137,11 +137,14 @@ export const PageEditorBody: React.FC<Props> = observer((props) => {
|
|||||||
// }
|
// }
|
||||||
};
|
};
|
||||||
|
|
||||||
const interval = setInterval(() => {
|
// Fetch the description immediately
|
||||||
fetchDescription();
|
fetchDescription();
|
||||||
}, 15000);
|
|
||||||
|
|
||||||
return () => clearInterval(interval);
|
// Then fetch the description every 10 seconds
|
||||||
|
const intervalId = setInterval(fetchDescription, 10000);
|
||||||
|
|
||||||
|
// Clear the interval when the component is unmounted
|
||||||
|
return () => clearInterval(intervalId);
|
||||||
}, [pageId, projectId, workspaceSlug]);
|
}, [pageId, projectId, workspaceSlug]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user