shivansh-bhatnagar18 / multiplayer-uno

https://multiplayer-uno.vercel.app
21 stars 43 forks source link

Make the modal system more compatible with dynamic content #168

Closed kuv2707 closed 5 days ago

kuv2707 commented 1 week ago

Description

Currently, it is a pain to render a modal with content that changes often, like number of players joined, etc. We can do the following to make it better:

Sample usage

function clickHandler(){
    modal.show("myModal",<div>HI there 100</div>);
}
useEffect(()=>
  modal.updateContent("myModal",
  <div>HI there {someStateVariable}</div>),
[someStateVariable]);
issue-assigner[bot] commented 1 week ago

Comment '@csoc-bot claim' to get this issue assigned or '@csoc-bot abandon' to get this issue unassigned.

ritwik-69 commented 6 days ago

@csoc-bot claim

issue-assigner[bot] commented 6 days ago

@ritwik-69 This issue has been successfully assigned to you! 🚀