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

(core) - fix maskTypenames clauses #621

Merged
merged 2 commits into from
Mar 15, 2020
Merged

(core) - fix maskTypenames clauses #621

merged 2 commits into from
Mar 15, 2020

Conversation

JoviDeCroock
Copy link
Collaborator

Summary

Fixes #620

typeof null === 'object' so we need to check if we have a truthy value before going into this branch.

Set of changes

  • add check for maskTypenames to see if we are dealing with a truthy value before checking the object properties.

@changeset-bot
Copy link

changeset-bot bot commented Mar 15, 2020

🦋 Changeset is good to go

Latest commit: e597470

We got this.

This PR includes changesets to release 1 package
Name Type
@urql/core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

'@urql/core': patch
---

Add a guard to "maskTypenames" so a null value isn't considered an object.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for other changesets, let’s write them more in the mood of why sth has changed rather than what has changed :)

@kitten kitten merged commit a5be30f into master Mar 15, 2020
@kitten kitten deleted the JoviDeCroock-patch-1 branch March 15, 2020 14:01
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

Successfully merging this pull request may close these issues.

maskTypeName and Cannot use 'in' operator to search for '__typename' in null
2 participants