question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

makeFindMixin returns nothing, but the websocket does (upgraded to Feathers4)

See original GitHub issue

Steps 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:closed
  • Created 4 years ago
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
marshallswaincommented, Dec 19, 2019

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.

1reaction
JorgenVatlecommented, Nov 15, 2019

Aha, understood. Thanks so much for the detailed response! 🤗

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found