mui / toolpad

Toolpad: Full stack components and low-code builder for dashboards and internal apps.
https://mui.com/toolpad/
MIT License
964 stars 243 forks source link

Generate application code in a worker #86

Closed Janpot closed 2 years ago

Janpot commented 2 years ago

Rough ideas on editor sandbox architecture

currently:

main thread => convert StudioDom to TSX code, stored in cache, signal sandbox service worker => convert cached code to ES5 to be runnable by the browser sandbox => HMR engine receive updates from main thread, reload changed modules through service worker

Future:

main thread => send StudioDom updates to worker thread worker thread =>

serviceworker =>

sandbox => HMR receive updates through serviceworker, reload changed modules, apply changes with react-refresh

Janpot commented 2 years ago

superseded by https://github.com/mui/mui-toolpad/pull/270