gloriasoft / veaury

Use React in Vue3 and Vue3 in React, And as perfect as possible!
MIT License
1.31k stars 83 forks source link

Issue with react-text-annotator #62

Closed SC-CTS closed 1 year ago

SC-CTS commented 1 year ago

Hi

I'm trying to get react-text-annotator to work in my vue 3 project but I can't get it to work right. I could create a reproduction here: https://stackblitz.com/edit/vitejs-vite-9t3de5?file=src/App.vue

The problem: I bind 2 refs to different props on the component, I then first update the text ref to a string and then a bit later I set the annotations ref to a new array. Setting the text works fine but when I then set the annotations later it seems to break somewhere.

I am not sure if it's a problem with the component or veaury, I'm sorry if this is not a veaury problem.

SC-CTS commented 1 year ago

I could reproduce it on react as well so it's probably not a veaury problem. Sorry for the mistake.