-
Notifications
You must be signed in to change notification settings - Fork 55
Rename fetch to avoid shadowing #608
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,7 +35,7 @@ external toPromise: observable<'a> => promise<'a> = "toPromise" | |
|
|
||
| external ignoreSubscription: subscription => unit = "%ignore" | ||
|
|
||
| let fetch = ( | ||
| let fetch_ = ( | ||
| ~node, | ||
| ~convertResponse: 'response => 'response, | ||
| ~convertVariables: 'variables => 'variables, | ||
|
Comment on lines
+38
to
41
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This file has no Useful? React with 👍 / 👎. |
||
|
|
||
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.
fetchhelper from generated query modulesIn the default React mode, the PPX now generates
RescriptRelay_Query.fetch_here, butpackages/rescript-relay/src/RescriptRelay_Query.resistill only exposesfetch. Downstream[%relay.query]artifacts will therefore reference a symbol that is not in the published interface and fail to type-check as soon as a consumer upgrades to this PPX/runtime pair.Useful? React with 👍 / 👎.