Don't require a unique name #989
Closed
Rolanddoda
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
Names are necessary to ensure the state always contains the same keys in server and client code |
Beta Was this translation helpful? Give feedback.
2 replies
-
I have an idea: wrap pinia's One possible method is to obtain the file name, line number and column number through the stack information of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The docs say:
Is there any way we can omit the id? I think it only adds more complexity to defining a store because you have to maintain all the names of the stores since they also need to be unique, but also you have to come up with names.
I understand that the name is needed for Devtools, but is there any way to automatically infer it? For example, when creating Vue components, you can add a name property and is what will be shown in Devtools. But if you don't specify a name, Devtools will automatically infer the name of the component.
Beta Was this translation helpful? Give feedback.
All reactions