Scenario: A modal for editing a user


Scenario: A modal for editing a user.

Modal URL: ?editUserId=1&openEditUserModal=true

Problem: The openEditUserModal param is needless.

Solution: Derive. If editUserId is in the URL, open the modal. If editUserId isn't in the URL, close the modal.

Benefits:
✅ Eliminates…

View original on X