Skip to content

[NEW] Open modals in side effects outside React#22247

Merged
tassoevan merged 4 commits intodevelopfrom
modal_subscription
Jun 14, 2021
Merged

[NEW] Open modals in side effects outside React#22247
tassoevan merged 4 commits intodevelopfrom
modal_subscription

Conversation

@gabriellsh
Copy link
Copy Markdown
Member

@gabriellsh gabriellsh commented Jun 4, 2021

Proposed changes (including videos or screenshots)

Issue(s)

Steps to test or reproduce

  • Import imperativeModal from client/lib/imperativeModal.ts and call imperativeModal.open({ component, props }) somewhere. It should open the provided modal in the React Context. imperativeModal.close() should close it.

Further comments

@gabriellsh gabriellsh requested a review from a team June 4, 2021 19:33
@gabriellsh gabriellsh marked this pull request as ready for review June 10, 2021 14:43
@dougfabris dougfabris changed the title [NEW] Open modals on sideeffects outside react [NEW] Open modals in side effects outside react Jun 10, 2021
@tassoevan tassoevan added this to the 3.16.0 milestone Jun 14, 2021
@tassoevan tassoevan changed the title [NEW] Open modals in side effects outside react [NEW] Open modals in side effects outside React Jun 14, 2021
@tassoevan tassoevan merged commit 3681868 into develop Jun 14, 2021
@tassoevan tassoevan deleted the modal_subscription branch June 14, 2021 22:10
@sampaiodiego sampaiodiego mentioned this pull request Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants