-
Notifications
You must be signed in to change notification settings - Fork 462
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
Auto-population of mutation bodies #471
Conversation
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 like the notion this exchange introduces, I'm just a bit on the ropes if it belongs inside the repository, the thing that makes me reluctant is quite superficial since if unused this will be tree-shaken off but in most bundle-analyzers like bundlePhobia this will add a lot of size with the 2 imported methods.
#472 The rationale behind this for anyone that is interested |
…to mutation-populate
Co-authored-by: Imran <[email protected]>
I hear you - but I don't think we should allow stats from services like bundlephobia to influence architectural decisions 😞 I'm not sure where else it would make sense to serve this exchange and I can see most Urql users wanting to use it! Did you have any alternatives in mind? |
@andyrichardson From an architectural standpoint; this is super useful in combination with
|
I think grouping it with graphcache isn't a bad shout if the bundle size impact is too large. While it can be used (and we should encourage use) with any cache, it doesn't make much sense to use this with the default cache. |
Here's a discussion thread on Spectrum, so we can discuss this publicly but with a lot more messages. I suspect this is going to be a longer discussion 😆 https://spectrum.chat/urql/general/core-discussion-monorepo-more-repos~51619a7d-dedd-4b35-99ab-0085cf15e233 |
f3a3ed5
to
5fc94df
Compare
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.
Quick first pass; It looks great! There's a couple bits I don't quite get yet, and a couple that could use some comments :) overall just have a few questions and nits though, so all good
Merged to graphcache |
Fix #472
Todo
Example