Replies: 2 comments 6 replies
-
I was thinking to make the plugins as stores (e.g. for dynamic In the meantime, you can do it on your end: export const todosStore = createStore('todos')({
isReady: false,
});
const plugin = createTodosPlugin({
options: todosStore,
)} |
Beta Was this translation helpful? Give feedback.
5 replies
-
Also note that I didn't consider using zustand context providers as I'm not sure it would work with zustood which is decoupled from react and should be usable anywhere (getters, actions), whereas contexts can only be used with hooks (like jotai). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The solution of
platesStore
is wonderful to have the behavior of context, where each component instance has its own state, as well as provides the ability to use the state anywhere in the app.I was wondering if there are any plans to refactor
platesStore
in the sense where we can use it for other components rather than just being tailored for the editor.I'm thinking something along the lines of:
then we could use it like so:
The challenge for me to do that is that I can't seem to figure out how to do the typing properly for it.
Beta Was this translation helpful? Give feedback.
All reactions