Closed ilomon10 closed 1 year ago
How to removeListener on editor.
useEffect(()=> { const handler = ()=>console.log('its duplicate'); editor.on('process', handler); return() { /* Maybe u can add `off` function to remove previous listener */ editor.off('process', handler); } }, [/* dynamic state */]);
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.
How to removeListener on editor.