Another question for profi, why do you use the Gra...
# prisma-whats-new
m
Another question for profi, why do you use the GraphQLClient, Apollo, Relay, etc? Why just not simple fetch?
j
Because they do a lot of heavy lifting when it comes to stuff like data store normalization and component lifecycle fetch management
m
@joar can you show me the real example 🙂
one example why you okay with bundle weight for this stuff
I do react native apps so bundle size is not an issue for me
m
for react-native I agree
j
I have created multiple web apps in the past using apollo client as well, I wouldnt do GQL without them, really
the bundle size impact is not that bad, usually other packages are far far worse
especially considering what it is youre getting for it
a
Apollo-client is around 23Kb minified compressed, that really shouldn't be an issue.
m
@agartha are you sure?) and 23kb is very big size for 3G
m
just checked now, raw apollo client preset is 108.7K and 28.9K gzipped
a
29Kb is not big, not even on 3G
m
@agartha if your app only contain apollo client it may be truth
@agartha do you check your apps with webpagetest and lighthouse?
a
Lighthouse usually
m
what is the first render time you got usually?
more than 4s?)
a
Definitely not
I'll check later, am on mobile.
Also, first meaningful paint is not only influenced by bundle size(s), but also by things like SSR, HTTP/2, etc. There's usually more to be gained in that direction than in shaving off a few bytes of the bundle size
j
I would argue very very strongly for the fact that the quality improvement of your application from adding a GQL client far outweighs any increases in TTI when it comes to user satisfaction
👍🏻 1