suren-atoyan / monaco-react

Monaco Editor for React - use the monaco-editor in any React application without needing to use webpack (or rollup/parcel/etc) configuration files / plugins
https://monaco-react.surenatoyan.com/
MIT License
3.74k stars 265 forks source link

Default Language no re-active #481

Closed mweel1 closed 1 year ago

mweel1 commented 1 year ago

The default language property isn't reactive.

To Reproduce

Steps to reproduce the behavior:

Set the defaultlanguage property from state with "javascript" change the state value to "html"

I expect the default language settings of the editor to change.

suren-atoyan commented 1 year ago

@mweel1 you should use language property if you want it to be "re-active"