You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using React Router, when ink-text-input become unmounted it throws the following error:
Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
in TextInput (created by Test)
in ink-box (created by Box)
in Box (created by Test)
in Test (created by Start)
in ink-box (created by Box)
in Box (created by Start)
in ink-box (created by Box)
in Box (created by Fullscreen)
in Fullscreen (created by Start)
in Start (created by Context.Consumer)
```
The text was updated successfully, but these errors were encountered:
Tried reproducing it with this, but didn't see that error:
constReact=require('react')const{Box, Text, render}=require('ink')constTextInput=require('.').defaultconstExample=()=>{const[show,setShow]=React.useState(true)const[value,setValue]=React.useState('')constsubmit=React.useCallback(()=>{setShow(false)},[])return<Box>{show&&<TextInputvalue={value}onChange={setValue}onSubmit={submit}/>}{!show&&<Text>Got the input</Text>}</Box>}render(<Example/>)
When using React Router, when ink-text-input become unmounted it throws the following error:
The text was updated successfully, but these errors were encountered: