Skip to content

Should Pinia warn when a mapState property is initially not present? #641

Discussion options

You must be logged in to vote

The problem here is that the return value of state should be a plain object, like data. Probably worth adding to the API docs. Maybe we could add a warning if the return isn't a plain object. There is already a function for it (I think it should work) in the code base !

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rbanks54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants