adding cleanup logic to avoid lingering event listeners #7
Annotations
2 errors and 6 warnings
src/index.tsx#L76
The ref value 'webview.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React, copy 'webview.current' to a variable inside the effect, and use that variable in the cleanup function
|
|
example/src/App.tsx#L14
Inline style: { flex: 1, backgroundColor: '#222' }
|
example/src/Ckeditor.tsx#L51
Empty components are self-closing
|
example/src/TaskList.tsx#L22
'data' is already declared in the upper scope on line 14 column 9
|
example/src/TaskList.tsx#L25
Do not define components during render. React will see a new component type on every render and destroy the entire subtree’s DOM nodes and state (https://reactjs.org/docs/reconciliation.html#elements-of-different-types). Instead, move this component definition out of the parent component “TaskList” and pass data as props
|
example/src/TaskList.tsx#L25
'data' is already declared in the upper scope on line 14 column 9
|
src/index.tsx#L172
Inline style: { margin: 5, overflow: 'hidden' }
|
The logs for this run have expired and are no longer available.
Loading