Hadiasemi / Crypto-Tracker

0 stars 2 forks source link

Implement Drag and Drop API to Watchlist Component #59

Closed jinyung2 closed 3 years ago

jinyung2 commented 3 years ago

Estimate: 2 hours

Need to wrap the current Watchlist component in the DnD API, must first learn how to use it

jinyung2 commented 3 years ago

Time Spent: 5 hours

Ran into issues implementing the react-beautiful-dnd library, mainly having to do with use of innerRef and providing it to the element within Watchlist component and conditional rendering of the Watchlist component messing up some kind of react component mounting cycle.

Issue was fixed by wrapping the Watchlist component with a div and placing appropriate drag related props on that element.

need to implement watchlist update function on the backend, and this issue will be complete.