Replies: 1 comment 2 replies
-
Sounds interesting. But wouldn't that mean to get rid of the current Between having multiple stores or just one should be an plugin option so that the user can choose between this. I had that idea also at refactoring of the code. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, so i was thinking about how we can intregrate orm functionality into an pinia store without this much additional states and with the ability to use the pinia actions, getters etc on the state of the models (our tables).
so at this approach we would add a model instance (the plugin), an object of fields and a object named table to our native pinia store and thats all!
Note that the plugin will instantiate the model with the fields of our pinia store
that means we can access our orm through store.model.insert (store = useStore() of pinia)
Currently im adding the common orm functionality, in my opinion we should focus on adding ONLY orm functionality within this plugin - no additional stores etc..
a store would look like this:
i will add a link to my repo as soon as i can provide a matured code base :)
Beta Was this translation helpful? Give feedback.
All reactions