thinknimble/tn-spa-bootstrapper

React Client - add axios alternative to apollo when using Rest

Closed this issue · 2 comments

When the project is not using gql, it makes more sense to include axios instead of apollo.

Since we're not differentiating with using gql/rest on React client creation, it would be nice to have the placeholders for both approaches.

Also I've been taking a look at this fetch wrapper https://github.com/elbywan/wretch. It is 5x smaller than axios.

I played around with it in here and it looked pretty good:
https://github.com/lakardion/test-wretch

Also we do not use JWT when not using GraphQL so maybe it also makes sense to remove that by default until we make authentication methods a choice!