codepod-io / codepod

Codepod IDE: Scalable Interactive Coding
https://codepod.io
MIT License
69 stars 16 forks source link

functional refactor & fix: remove state.role #542

Closed lihebi closed 10 months ago

lihebi commented 10 months ago

This is one of the efforts to make the component more "(purely) functional" by extracting states out. States are global variables that should be avoided when possible.

Removed states:

Added states:

Bug fix: