Forgot to save TextComponent, and cleanup some warnings
This commit is contained in:
@@ -99,14 +99,17 @@ const TextComponent: React.FC<Props> = ({part, contextWord, setContextWordLine})
|
||||
});
|
||||
|
||||
if (textRef.current) {
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
resizeObserver.observe(textRef.current);
|
||||
}
|
||||
|
||||
return () => {
|
||||
if (textRef.current) {
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
resizeObserver.unobserve(textRef.current);
|
||||
}
|
||||
};
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [part.context, contextWord]);
|
||||
|
||||
/*if (typeof part.showContextLines === "undefined") {
|
||||
|
||||
Reference in New Issue
Block a user