Conditional PiniaCustomProperties types based on DefineStoreOptionsBase #1772
Unanswered
alexmccabe
asked this question in
Help and Questions
Replies: 0 comments
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.
-
I've created a plugin which allows augmenting every store a
meta
object and some other useful information.Each individual store then has the ability to access the custom properties:
The thing is, since the
useMeta
is optional in the store options, I don't want the new custom properties to show up inside the store unless it has been set to true.Is it possible to achieve something like this?
Beta Was this translation helpful? Give feedback.
All reactions