Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve isolation of runtime from editor #2021

Merged
merged 9 commits into from
May 17, 2023
Merged

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented May 15, 2023

#2016 uncovered that it's too easy mixing up runtime concerns with editor concerns. I'm working towards stronger isolating the two. Short term just within @mui/toolpad-app through enforcing some eslint rules, but further down the line it probably makes sense to replace the @mui/toolpad-core and @mui/toolpad-components with a @mui/toolpad-runtime package to get a package topology that encourages better separation.

Future topology

  • @mui/toolpad => CLI + set up toolpad server, imports @mui/toolpad-editor
  • @mui/toolpad-editor => Toolpad editor app, imports and wraps @mui/toolpad-runtime
  • @mui/toolpad-runtime => Toolpad app runtime only, also provides all encessary hooks the editor will need to wrap the runtime

@Janpot Janpot added the core Infrastructure work going on behind the scenes label May 15, 2023
@Janpot Janpot marked this pull request as draft May 15, 2023 16:50
@Janpot Janpot marked this pull request as ready for review May 16, 2023 15:09
@Janpot Janpot enabled auto-merge (squash) May 17, 2023 11:24
@Janpot Janpot disabled auto-merge May 17, 2023 11:24
@Janpot Janpot merged commit a0f0bc7 into mui:master May 17, 2023
@Janpot Janpot deleted the runtime-isolations branch May 17, 2023 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant