We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<script> export default { data() { return { selectedThreadId: 'test', }; }, computed: { testComputed() { return 'testComputed'; }, }, meteor: { $subscribe: { threads: [], }, meteorTestComputed() { // returns undefined return this.testComputed; }, testSubReady() { // this.$subReady.threads == undefined if (this.$subReady.threads) { console.log('test If'); } }, threads() { // Works as expected. return Threads.find( {}, { sort: { date: -1 }, } ); }, threadsTest() { // Returns undefined return this.threads; }, selectedThread() { // Doesn't work as expected. const test = this.selectedThreadId; // test == undefined // The same happens with properties in computed and meteor sections. return Threads.findOne(this.selectedThreadId); }, }, }; </script> <!-- computed can access meteor properties cursor is not reactive meteor cursor is reactive cannot access computed, meteor or data properties can access this correctly -->
The text was updated successfully, but these errors were encountered:
Same here, with:
We can't access data or computed properties inside the meteor block.
I had to change the component to composition API
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: