Giter Site home page Giter Site logo

next-apollo's People

Contributors

sbking avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

next-apollo's Issues

reduxRootKey vs reduxRootSelector

I'm having an issue with the reduxRootKey, which is being deprecated in favor of reduxRootSelector. This opens up the possibility of using arbitrary structures such as Immutable.js to hold your Redux state. Unfortunately, it also means that we have to know how the user is creating the state. Right now, only plain object states are supported. Perhaps in the future, we could add a way for the user to declare how their initial state should be constructed, as well as how it should be serialized and deserialized so the HOC can transfer the state successfully from getInitialProps on the server to the component constructor where it can be rehydrated on the browser.

Defaults?

Totally dig this approach! Iโ€™m wondering, is it worth providing some defaults (with the option to override those defaults) for those developers who might want to get going with Apollo and Next right away? Removing the requirement of creating 3 new files (initClient, initStore, and apolloFactory) after installing the package would reduce "scaffolding friction". It'd be cool if all a developer had to provide was a graphql endpoint to the library to get started, while still providing the option to override those individual files.

What do you think?

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.