Skip to content

Commit

Permalink
[docs] Add note about dynamic content in modals manager (#4042)
Browse files Browse the repository at this point in the history
  • Loading branch information
bentron2000 authored Apr 11, 2023
1 parent 514afaf commit eab1e59
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/src/docs/others/modals.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,13 @@ You can open multiple layers of modals. Every opened modal is added as first ele
To close all opened modals call `modals.closeAll()` function:

<Demo data={ModalsDemos.multipleSteps} />

## Dynamic Content and the modals manager

Note that when using the Modals manager, dynamic content is not supported.
Once modal is opened, a snapshot is saved into internal state and cannot be updated.

If you intend to have dynamic content in modals, either:
- Use internal component state, or
- Use the modal component instead of modals manager

0 comments on commit eab1e59

Please sign in to comment.