You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I'm trying to implement dragging from outside Mosaic. I've done as you described here #122 (comment)
and it appears to work but the problem I have is that in endDrag my component.context doesn't have a mosaicActions object so I can't really do anything useful.
Can you give me any hints to tell me what I might be doing wrong?
The text was updated successfully, but these errors were encountered:
I think this is because of a lack of Mosaic context, I am currently working on decoupling Mosaic provider that will render just children and nothing more from Mosaic window renderer that you will be able to use it wherever you want. Something like this:
<Mosaic{...allMossaicProps}><MyHeader/><MyButton/><MosaicWindows/> //You decide where to put it
</Mosaic>
Then we can hook in MyHeader and MyButton to the mosaic actions and do whatever we want to do. Currently there is no possibility to render juest a children in the Mosaic component
@nomcopter Have you thought about this, do you think there are any limitations?
I would also love this feature because we are trying to implement mosaic with various components that require a preservation of context and state within them.
It is a major challenge to try and prevent the child component within a mosaic window from re-rendering unnecessarily when the layout changes.
Hi. I'm trying to implement dragging from outside Mosaic. I've done as you described here #122 (comment)
and it appears to work but the problem I have is that in endDrag my component.context doesn't have a mosaicActions object so I can't really do anything useful.
Can you give me any hints to tell me what I might be doing wrong?
The text was updated successfully, but these errors were encountered: