Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Change graphql-tag import to default jsx3-hooks #194

Merged

Conversation

JakubMarkiewicz
Copy link
Contributor

Pull Request Labels

  • feature
  • fix
  • blocking
  • docs

Hey :)
[@bs.module] external gql: ReasonApolloTypes.gql = "graphql-tag" in specific situations causes issues (jest testing in my case). Switching to [@bs.module "graphql-tag"] external gql: ReasonApolloTypes.gql = "default" is safe and causes no such problems.
Similar to #80 but for jsx3 branch.
@Gregoirevda

@JakubMarkiewicz JakubMarkiewicz changed the title Change graphql-tag import to default Change graphql-tag import to default jsx3-hooks May 29, 2019
@@ -48,6 +48,8 @@ type uploadLinkOptions = {
[@bs.module "apollo-client"] [@bs.new]
external createApolloClientJS: 'a => generatedApolloClient = "ApolloClient";

[@bs.module "graphql-tag"] external gql: ReasonApolloTypes.gql = "default";
Copy link
Contributor

Choose a reason for hiding this comment

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

much better

@Gregoirevda Gregoirevda merged commit aee51fb into apollographql:feature/jsx3 May 30, 2019
@Gregoirevda
Copy link
Contributor

Gregoirevda commented May 30, 2019

Thanks for the PR, I just published it under 0.16.1 (@ default, not @ alpha anymore)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants