StellateHQ / fuse

Fuse: The fastest way to build and query great APIs with TypeScript

Home Page:https://fusedata.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Export a `createDefaultClient` method

JoviDeCroock opened this issue · comments

Currently we duplicate creating the client a lot across client/pages/server which might feel a bit intimidating. We could offer a default-client that has opinions out of the box. Then the only thing the user needs to do is pass in the url

  • client: cacheExchange, ssr, fetchExchange
  • server: fetchExchange
  • pages: cacheExchange, ssr, fetchExchange