Title
m

Maslov

10/27/2017, 7:59 PM
Another question for profi, why do you use the GraphQLClient, Apollo, Relay, etc? Why just not simple fetch?
j

joar

10/27/2017, 8:03 PM
Because they do a lot of heavy lifting when it comes to stuff like data store normalization and component lifecycle fetch management
m

Maslov

10/27/2017, 8:03 PM
@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

Maslov

10/27/2017, 8:04 PM
for react-native I agree
j

joar

10/27/2017, 8:05 PM
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

agartha

10/27/2017, 8:10 PM
Apollo-client is around 23Kb minified compressed, that really shouldn't be an issue.
m

Maslov

10/27/2017, 8:12 PM
@agartha are you sure?) and 23kb is very big size for 3G
m

Maslov

10/27/2017, 8:16 PM
just checked now, raw apollo client preset is 108.7K and 28.9K gzipped
a

agartha

10/27/2017, 8:16 PM
29Kb is not big, not even on 3G
m

Maslov

10/27/2017, 8:17 PM
@agartha if your app only contain apollo client it may be truth
@agartha do you check your apps with webpagetest and lighthouse?
a

agartha

10/27/2017, 8:18 PM
Lighthouse usually
m

Maslov

10/27/2017, 8:18 PM
what is the first render time you got usually?
more than 4s?)
a

agartha

10/27/2017, 8:19 PM
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

joar

10/27/2017, 8:56 PM
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