Skip to content

Commit f2341c3

Browse files
committed
Preventing unncessesary re-renders
1 parent aefe2f4 commit f2341c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/text-annotator-react/src/tei/CETEIcean.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const CETEIcean = (props: CETEIceanProps) => {
7777
return () => {
7878
el.current.innerHTML = '';
7979
}
80-
}, [props.tei, props.initArgs, props.onLoad]);
80+
}, [props.tei, JSON.stringify(props.initArgs), props.onLoad]);
8181

8282
return (
8383
<div

0 commit comments

Comments
 (0)