Hi @quodsimDan , thanks for your question and for contributing to the Lucid for Developers Community. We’re looking into this and will get back to you shortly.
Hey @quodsimDan , got a bit more information for you about that:
We don’t currently have have any sort of on drop handler, but one of our engineers had a couple of suggestions that might work for your use case (even if they might not be ideal):
- You can have a user manually trigger the action through the context menu. The user would drop the shape on the canvas, then right click on the shape and click on the relevant menu option
- You might be able to leverage the viewport.hookSelection mechanism. It runs an action any time the user selects a new block. When a block is dropped onto the page, it is automatically selected, and could trigger the action you want run. The only problem with this is you might need to handle the case where and item is selected after it already exists on the board.
Hopefully one of these can fit your use case, sorry for the delay in answering your initial post!