Rohail Taha

Results 7 comments of Rohail Taha

I had same problem, there is no feature in the library for drop targets. React dnd and Interact.js will work in this case.

Same issue with apollo/client version 3.5.7.

you can subscribe the B component to the props update of A component: ```typescript function BComponent() { const { store } = useEditor() useEffect(() => { const unsubscribe = store.subscribe(...

> How to get A component id?can i set the id? You can store the A component's id inside the B components' `props` or `custom` object considering the A component...

> The clone appears at the end of the Editor. How do I duplicate it right after the node itself? You can get the current node's index in the parent...

I successfully installed the package with the flag `--legacy-peer-deps` like so: `npm i use-react-screenshot --legacy-peer-deps` and it works. But issue with peer dependency still need to be resolved.

@ImranQUB As far as I remember, I didn't change anything else.