apollo-link-webworker
apollo-link-webworker copied to clipboard
Do not parse if data is already object
@PCreations I encountered this error Uncaught SyntaxError: Unexpected token o in JSON at position 1 for certain situation, it turns out that data is already an object hence parsing twice causes the error
Congratulations :beers:. DeepCode analyzed your code in 0.204 seconds and we found no issues. Enjoy a moment of no bugs :sunny:.
:speech_balloon: This comment has been generated by the DeepCode bot, installed by the owner of the repository. The DeepCode bot protects your repository by detecting and commenting on security vulnerabilities or other critical issues.
:relaxed: If you want to provide feedback on our bot, here is how to contact us.
@PCreations I'm not very familiar with jest, looking at the existing test case, would you recommend or help with that?