makeFindMixin returns nothing, but the websocket does (upgraded to Feathers4)
See original GitHub issueSteps to reproduce
I had a working makeFindMixin
, but then upgraded to Feathers4. Now, no data seems to make it to vue.
<template lang="pug">
div
| {{ devicelibrary }}
</template>
<script>
import { makeFindMixin } from 'feathers-vuex'
export default {
name: 'DeviceMenu',
mixins: [makeFindMixin({ service: 'devicelibrary' })],
computed: {
devicelibraryParams() {
return { query: { $sort: { device: 1 } } }
}
}
}
</script>
Expected behavior
It should populate with results from the socket
Actual behavior
[]
So, per this note, i put a breakpoint.
serviceState.keyedById
is empty (well, an observer),queryInfo
: {“qid”:“default”,“query”:{“$sort”:{“device”:1}},“queryId”:“{"$sort":{"device":1}}”,“queryParams”:{“$sort”:{“device”:1}}}"params
: {“query”:{“$sort”:{“device”:1}},“qid”:“default”}
Again, using a feathers hook, i see that the appropriate data has arrived. The results are what I expect, given the query. I do not mess with the params anywhere, eitherr.
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (11 by maintainers)
Top Results From Across the Web
Common Patterns | FeathersVuex
In feathers-vuex@1.x , the id is the default idField . ... (except remove, of course) But be aware that only the individual records...
Read more >Data shows up in websocket response but not in resolved ...
I'm using Nuxt + Express/Feathers to build an app, with the two communicating over a socket.io connection. Using feathers-vuex, I can easily ...
Read more >How do I troubleshoot WebSocket issues in Agents (All ...
The purpose of this article is to provide information on troubleshooting WebSocket issues with Agents in AM. This information applies to ...
Read more >Troubleshooting connection issues | Socket.IO
which should return something like this: 0{"sid":"Lbo5JLzTotvW3g2LAAAA","upgrades":["websocket"],"pingInterval":25000,"pingTimeout":20000}
Read more >Writing WebSocket servers - Web APIs | MDN
A WebSocket server is nothing more than an application listening on any port ... Upgrade: websocket Connection: Upgrade Sec-WebSocket-Key: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In 3.0, which is coming within a few days, pagination will be turned off by default. This means that queries and lists will be realtime by default.
Aha, understood. Thanks so much for the detailed response! 🤗