Management of whether ui components are visible in mobx?

there is a problem with using mobx:

obtain the backend interface data through @ action, then assign a value to @ observable data, and then calculate whether the modal needs to be displayed from data through @ computed modalVisiable. How can I change the @ computed value modalVisiable to false if modal, is turned off?

how should the state of ui components like modalVisiable be managed through mobx?


since your modalVisiable is calculated through data, you can change data through @ action and indirectly change modalVisiable to false

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e83a86-46a3b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e83a86-46a3b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?