Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Nick-Lucas opened this issue Sep 30, 2022 · 0 comments
Open

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

Nick-Lucas opened this issue Sep 30, 2022 · 0 comments

Comments

@Nick-Lucas
Copy link
Owner

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 Nick-Lucas changed the title Support transition in-and-out for elements Imperative-Render: Support transition in-and-out for elements Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant