-
Notifications
You must be signed in to change notification settings - Fork 107
Conversation
_ = | ||
""; | ||
|
||
// [@bs.obj] |
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 delete
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.
Yes, as not used anymore in createApolloClient
), | ||
); | ||
}; | ||
// let webSocketLink = (~uri, ~reconnect=?, ~connectionParams=?, ()) => { |
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.
Why commented?
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.
Can be deleted as all links should be in ApolloLinks
type webSocketLinkOptionsT = { | ||
[@bs.optional] | ||
reconnect: bool, |
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.
optional in the new typed object
), | ||
) | ||
jsMutation({variables, refetchQueries, optimisticResponse}) | ||
// jsMutation( |
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.
delete
. | ||
"subscriptionData": Js.Nullable.t(Js.Json.t), | ||
"variables": Js.Nullable.t(Js.Json.t), | ||
subscriptionData: option(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.
Can be null & undefined: switch to Js.Nullable.t
"subscriptionData": Js.Nullable.t(Js.Json.t), | ||
"variables": Js.Nullable.t(Js.Json.t), | ||
subscriptionData: option(Js.Json.t), | ||
variables: option(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.
Can be null & undefined: switch to Js.Nullable.t
In general double check |
@idkjs Thanks a lot for your work!! I added some comments to myself, not sure if always relevant, but need to look into. |
Pull Request Labels
bs platform 7 support