tried doing this with a reusable modal built with radix that receives a children but there's not way you send back the "key" from the children to the wrapper unless you use some global state management, and doing that just to pass the key is not worth it I guess.
Did you try making your own component that extends the Radix modal with the key prop added? I agree that setting up global state isn't worth it for a single component, it should be localized
Good one there!
Great insights.
nice one!
tried doing this with a reusable modal built with radix that receives a children but there's not way you send back the "key" from the children to the wrapper unless you use some global state management, and doing that just to pass the key is not worth it I guess.
Did you try making your own component that extends the Radix modal with the key prop added? I agree that setting up global state isn't worth it for a single component, it should be localized