-
Notifications
You must be signed in to change notification settings - Fork 28
Make compatible with GraphQL PPX 1.0 beta #117
base: master
Are you sure you want to change the base?
Conversation
src/ApolloClient.re
Outdated
@@ -0,0 +1,128 @@ | |||
open ReasonApolloTypes; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be amazing if this would be moved to another package so reason-apollo and reason-apollo-hooks could share the same ApolloClient definitions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably better to have a single package, because the hooks are now also part of the same @apollo/client
package.
src/ApolloHooksSubscription.re
Outdated
}; | ||
|
||
[@bs.module "@apollo/client"] | ||
external useSubscription: | ||
(ReasonApolloTypes.queryString, options('raw_t)) => | ||
(ReasonApolloTypes.queryString, options('raw_t, 'raw_t_variables)) => | ||
{ | ||
. | ||
"data": Js.Nullable.t(Js.Json.t), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs to be "data": Js.Nullable.t('raw_t),
?
When I tried to use this branch I got confused because the readme still states to install and use |
@chrispad2k just started to work on the readme pr. |
🚧🚧 Only if you want to try the unstable beta of GraphQL PPX 1.0 🚧🚧
GraphQL PPX adds quite a bit of breaking changes, this fork makes it compatible.
There are also some other changes, as this is the version we use in production
Mainly