UI and state management approach for plugins #19
robertherber
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Examples use cases:
Ideally we want something that:
Of course hard to check all the boxes :)
There are combinations we could look at. For example adopting React Native Components as our standard would:
Something to also consider is how to minimize bloat in the plugins. Let’s say we just want to expose a React Native Component we might not want to have it in the same NPM package as the backend code, since it would force UI dependencies when installing it on the backend and vice versa. On the other hand if we expose this Component through any kind of Server Side Rendering this might be desirable to some degree.
For state management using a cross-framework state management system like Zustand or Redux (or maybe just a framework-independent reducer?) is probably a good idea for starters. A library like this is easy to use in any UI framework.
Maybe something along the lines of:
Beta Was this translation helpful? Give feedback.
All reactions