gapstack icon indicating copy to clipboard operation
gapstack copied to clipboard

Imperative-Render: Support transition in-and-out for elements

Open Nick-Lucas opened this issue 1 year ago • 0 comments

We need some appropriate callbacks and params which can be passed to rendered elements in order to support transitions. For instance those supported by MUI Modal's

Something roughly along these lines:

const render = AlertsRenderer.useImperativeRender()

function() {
  render(params => (
    <Modal open={params.open} onClose={params.startDestroy} onClosed={params.destroy} />
  ))
}

Nick-Lucas avatar Sep 30 '22 19:09 Nick-Lucas