thisbeyond / solid-dnd

A lightweight, performant, extensible drag and drop toolkit for Solid JS.
https://solid-dnd.com
MIT License
516 stars 34 forks source link

Access state and actions from callback handlers #92

Open martinpengellyphillips opened 1 year ago

martinpengellyphillips commented 1 year ago

For example, if want to call recomputeLayouts on drag start, it would be easier to do this in the top level callback. However, there is no way to access this there so passing as an argument would help. The current workaround is to create a null component just to do this.