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) - Expose client.subscription shortcut method #838

Merged
merged 4 commits into from
May 26, 2020

Conversation

danielkcz
Copy link
Contributor

Resolves #837

Summary

Expose client.subscription to be correctly recognized by the exchange.

Set of changes

An only small addition to @urql/core API.

@changeset-bot
Copy link

changeset-bot bot commented May 26, 2020

🦋 Changeset is good to go

Latest commit: 8b0d96d

We got this.

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

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

@danielkcz
Copy link
Contributor Author

@kitten I did not bother adding tests because query/mutation are not tested as well.

Copy link
Member

@kitten kitten left a comment

Choose a reason for hiding this comment

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

Mostly just some suggestions around the docs additions :) Thanks again for picking this up!

packages/core/src/client.ts Outdated Show resolved Hide resolved
docs/api/core.md Outdated Show resolved Hide resolved
docs/advanced/subscriptions.md Outdated Show resolved Hide resolved
.changeset/hot-dryers-drive.md Outdated Show resolved Hide resolved
@kitten kitten changed the title Export client.subscription shortcut (core) - Expose client.subscription shortcut method May 26, 2020
FredyC and others added 3 commits May 26, 2020 21:44
Co-authored-by: Phil Plückthun <phil@kitten.sh>
Co-authored-by: Phil Plückthun <phil@kitten.sh>
Co-authored-by: Phil Plückthun <phil@kitten.sh>
@kitten kitten merged commit 98b6edc into urql-graphql:master May 26, 2020
@danielkcz danielkcz deleted the core-client-subscription branch May 26, 2020 20:04
@danielkcz
Copy link
Contributor Author

@kitten Can you please publish this soon? I realized this is also problem with a web project when running a subscription from XState machine. I know I can workaround that easily, but I would rather have the client.subscription directly instead of replacing it manually later.

@kitten
Copy link
Member

kitten commented Jun 3, 2020

@FredyC We’re currently batching up several changes for a larger release cycle. If you’d like to use this change right now you can use it from the cache review packages that CodeSandbox CI publishes to its CDN

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.

Calling client.query with subscription is not correctly recognized
3 participants