Ben Newman
Ben Newman
The vast majority of Babel users who use ES module syntax currently compile it down to CommonJS. If there's no reasonable compilation strategy for top-level `await` that targets CommonJS (and...
I opened this issue back in January in hopes of sparking discussion about transpilation strategies for top-level `await`: https://github.com/tc39/proposal-top-level-await/issues/2 In short, if we could agree on a general mechanism for...
The committee decided we were more comfortable with supporting just ```js export default from "module"; ``` as another `export default` variant, whereas ```js export DefaultFromModule from "module"; ``` was less...
We believe a common use case for `export default from "module"` will be adding the `default` export to `export * from "module"`, which otherwise skips `default` [by design](https://github.com/tc39/ecma262/issues/948): ```js export...
@loganfsmyth The committee felt `export { default as foo } from "bar"` (which already works) was clearer than `export foo from "bar"`. However, if you have any data that `export...
@lorensr I like this idea, but I think I would prefer allowing nested `fields`, which should be unambiguous because objects and functions are easily distinguishable: ```ts const [removeReview] = useMutation(REMOVE_REVIEW_MUTATION,...
Here's my current thinking about this idea: https://github.com/apollographql/apollo-client/issues/7129
Thanks for noticing this strange code and letting us know about it @Mikilll94! I've opened two PRs to fix the docs and the tutorial code: * https://github.com/apollographql/apollo/pull/1145 * https://github.com/apollographql/fullstack-tutorial/pull/213
Although `fetchPolicy` was what motivated this FR, I imagine this functionality would go further than just preserving `options.fetchPolicy`, allowing the entire `QueryData` object to be preserved without relying on [`useRef`...
@LvovDmitriy [Apollo Client 3.3](https://github.com/apollographql/apollo-client/pull/7015) will support **inheritance** of type policies, based on `possibleTypes` information: https://github.com/apollographql/apollo-client/pull/7065. This means you can specify type policies in a shared supertype, and those policies will...