I just set up auth by following the same patterns as in the react-8base-starter-app and it was pretty easy to quickly get started! However, the 8base libraries it uses (i.e. @8base/api-client, @8base/react-sdk, @8base/app-provider) all have fairly big bundle sizes (each above 100 KB minified and gzipped), causing the build of the starter app to be ~320 KB.
I was considering using them in production, but probably won’t be possible due to their size.
I’m mostly posting here in case the fix is something easy like excluding unnecessary stuff from the bundle.
I’m curious about this as well. And looking for more info about the right packages for 8base + React so I can move forward.
8base libraries seem to be:
heavy?
some are not documented that well (or at all)?
in the case of api-client may not have graphql query cacheing (or does it? I’m not sure. I’d assume it wouldn’t for Nextjs server-side graphql query cacheing?)
Which leads me to think the safest bet is to ignore (some? all?) of the 8base libraries but it’s unclear exactly where the overlap is with alternatives.
If I choose Apollo Boost for graphql client instead of 8base client does that mean:
I can use Apollo Boost for all @8base/api-client, @8base/react-sdk , @8base/app-provider and ‘withAuth from @8base/react-sdk’ uses?
And if so, how specifically do I use Apollo Boost to connect to 8base with all the info 8base needs?