Description
Sorry if this isn't formatted correctly. I'd really like to use this package but I need the background color to be transparent. If you pass options to the useXTerm function, you get the react error:
Warning: Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render. Component Stack:
App App.jsx:4
:1:145535
overrideMethod :1
React 5
useXTerm index.js:64
React 9
workLoop scheduler.development.js:266
flushWork scheduler.development.js:239
performWorkUntilDeadline scheduler.development.js:533
(Async: EventHandlerNonNull)
js scheduler.development.js:571
js scheduler.development.js:633
__require chunk-IZZUN6UV.js:3
js index.js:6
__require chunk-IZZUN6UV.js:3
React 2
__require chunk-IZZUN6UV.js:3
js React
__require chunk-IZZUN6UV.js:3
js React
__require chunk-IZZUN6UV.js:3
react-dom_client.js:37
You can recreate this error easily by editing the example code by only adding an options object to the hook like so:
const { instance, ref } = useXTerm({
options: {
cursorBlink: true,
}})
I originally encountered this error in my own project and assumed it was my lack of understanding, but the same problem persists in the example code. I know this is a smaller project that has limited time and resources, but I hope that someone can take a look at this and either tell me what I'm doing incorrectly or tell me I'm not stupid. I am too stupid to try to fix it myself and create a pull request.