Autocomplete dropdown in react

I am using codemirror 6 in react and want to update the content of editor when the react state changes , for that I am using useEffect with value prop dependency , but doing this useEffect , my autocomplete dropdown is not showing when typing

Can someone help in this @marijn

I am not a React expert, so no, no idea.

see if this article and the newer article referenced in there can help you