Have ChatWidget hold state structs for each of the widgets with a nontrivial amount of state.
An example, the MessageWidget holds every known message and filters every render to display only the current rooms messages; this is an extreamly inefficient way of doing it.
Have ChatWidget hold state structs for each of the widgets with a nontrivial amount of state.
An example, the MessageWidget holds every known message and filters every render to display only the current rooms messages; this is an extreamly inefficient way of doing it.