Skip to content
New issue

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

warnAboutDataLoss fails with stringifying error and breaks application #425

Open
andreimatei opened this issue Feb 12, 2024 · 0 comments
Open

Comments

@andreimatei
Copy link

I have a query set to poll every so often. When the query returns a particular result (an empty array), apollo client appears to fail in an internal function, and from that moment on the query does not appear to be polled any more. I'm sure ultimately I'm holding something wrong, but it appears that Apollo is not resilient to whatever it is that I'm screwing up. I think the error indicates that the String method is called on... something that doesn't support that.

The error comes from warnAboutDataLoss, which I assume is supposed to be an unessential method (although I am curious what it would tell me if it succeeded in printing a message).

Uncaught TypeError: Cannot convert object to primitive value
    at Array.join (<anonymous>)
    at Array.toString (<anonymous>)
    at String (<anonymous>)
    at warn (<anonymous>)
    at console.overrideMethod [as warn] (console.js:213:1)
    at chunk-L5PWGWHX.js?v=d6783c76:216:21
    at Function.warn (chunk-L5PWGWHX.js?v=d6783c76:282:8)
    at warnAboutDataLoss (@apollo_client.js?v=d6783c76:3345:45)
    at @apollo_client.js?v=d6783c76:3049:13
    at Array.forEach (<anonymous>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant