-
-
Save Mattchewone/a3fb09fa0323468658a14f61b669af28 to your computer and use it in GitHub Desktop.
Getting the initial data loaded
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
methods: { | |
...mapActions('messages', { | |
findMessages: 'find' | |
}) | |
}, | |
created () { | |
this.findMessages({ query: { $or: [{ to: user._id }, { from: user._id }] } }) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment