Giter VIP home page Giter VIP logo

split's Introduction

Build Status Netlify Status

Split

Keep track of your costs. We’ll handle the math.

picture

picture

picture

split's People

Contributors

dependabot-preview[bot] avatar jclackett avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

split's Issues

Call GraphQL API from getServerSideProps

Hey @JClackett,

Thanks a lot for sharing this project, I learned a lot from it and it was a great starting point for my graphql typeorm boilerplate.
I like your approach of querying GraphQL API from components, very clean. Unfortunatly, we can't use hooks like useQuery / useMutation in getServerSideProps, and sometimes I'd like to query my GraphQL API directly in getServerSideProps (for example to handle redirect server side).

I followed recent discussions about calling GraphQL API in getServerSideProps, then handle client side querying (for pagination for instance) and stumbled upon your updated version (with initial cache update) of the next js with-apollo example so I guess you're stil using apollo client in your new projects.

I saw there was other way of doing that with graphql-request + swr / react-query or urql which are lighter but does not seem to handle the cache part as well as apollo.

I was wondering if you also sometimes need to query the GraphQL API from getServerSideProps and if that's the case, if you could share a gist of what approach you picked?

I'd also be interested to know if you made the switch to next js api routes vs custom server on your new projects as there seems to be some problems with HMR + typeorm?

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

File: renovate.json
Error type: The renovate configuration file contains some invalid settings
Message: Invalid regExp for packageRules[0].packagePatterns: eslint, Invalid regExp for packageRules[1].packagePatterns: @types/``

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.