1. 19 Jul, 2018 1 commit
  2. 18 Jul, 2018 2 commits
  3. 17 Jul, 2018 1 commit
  4. 15 Jul, 2018 1 commit
  5. 13 Jul, 2018 3 commits
  6. 12 Jul, 2018 1 commit
    • Kenneth Luján Rosas's avatar
      [with-apollo] simplify apolloState prop (#4755) · dca2ca6f
      Kenneth Luján Rosas authored
      As seen on `with-apollo-auth` there are some things that need to be addressed here too.
      
      * #4554 remove useless `apolloState` from App props on `getDataFromTree`
      * #4563 simplify `apolloState` prop
      
      Let me know if further changes/fixes are needed. 
      Thank you 🎉 
      dca2ca6f
  7. 11 Jul, 2018 4 commits
  8. 10 Jul, 2018 1 commit
  9. 09 Jul, 2018 1 commit
  10. 06 Jul, 2018 3 commits
  11. 05 Jul, 2018 2 commits
    • NikitaVlaznev's avatar
      Apollo example: avoid double render in browser (#4734) · 728871b0
      NikitaVlaznev authored
      Apollo's getDataFromTree is supposed to be called during the server side rendering.
      Being called in browser it fires an unnecessary fake render process and blocks components from rendering with loading=true.
      
      Also there was a mistake in this code:
      
          // `getDataFromTree` renders the component first, the client is passed off as a property.
          // After that rendering is done using Next's normal rendering pipeline
          this.apolloClient = props.apolloClient || initApollo(props.apolloState.data)
      
      **Apollo** component is not rendered by getDataFromTree actually, it renders the **App** directly, thus props.apolloClient will always be undefined.
      
      This example was discussed here: https://github.com/zeit/next.js/issues/387.
      728871b0
    • Jacob Page's avatar
      Support `events` emitter for router (#4726) · 498f37e3
      Jacob Page authored
      Fixes #4679 
      * Document usage of `events` router property
      * Expose `events` in the `router` context object
      498f37e3
  12. 04 Jul, 2018 1 commit
  13. 02 Jul, 2018 1 commit
    • Luc's avatar
      Upgrade styled-jsx to 2.2.7 (#4714) · 71fe4984
      Luc authored
      Fixes #4713
      
      I ran into this issue, when re-installing :
      ```
      error upath@1.0.4: The engine "node" is incompatible with this module. Expected version ">=4 <=9".
      error Found incompatible module
      ```
      
      I used `yarn install --ignore-engines` as a workaround.
      71fe4984
  14. 30 Jun, 2018 2 commits
  15. 29 Jun, 2018 5 commits
    • Gary Meehan's avatar
      Add [with-storybook] example (#4588) · 0da53a14
      Gary Meehan authored
      The purpose of the PR is to add the simplest possible integration with Storybook. 
      
      It leaves the default Storybook and also adds a custom component to show how it would be used in both the app and Storybook.
      
      Update: 
      Tested with latest 👉  6.1.1
      0da53a14
    • Gary Meehan's avatar
      [hello-world example] remove unused file (patch) · 6a489efc
      Gary Meehan authored
      Removes unused file
      Adds note on `day` subdirectory. 
      6a489efc
    • dengyunxie's avatar
      Make the file beautiful (#4694) · 4744fbd0
      dengyunxie authored
      unified format😀😋
      4744fbd0
    • Tim Neutkens's avatar
      6.1.1 · 0bcee3c2
      Tim Neutkens authored
      0bcee3c2
    • Niklas Wagner's avatar
      Added note for AWSAppSyncClient (#4611) · dde20fc8
      Niklas Wagner authored
      I had some trouble to get server side rendering with the AWSAppSyncClient working. I finally found a solution in https://github.com/awslabs/aws-mobile-appsync-sdk-js/issues/82 but it might be worth to share it here as well. Instead of adding a big code block to each file I'll just refer to this Pull Request.
      
      ______
      
      In case you want to use the `AWSAppSyncClient` you just need to replace the `create()` function with this function:
      ```jsx
      import AWSAppSyncClient from 'aws-appsync';
      import { AUTH_TYPE } from 'aws-appsync/lib/link/auth-link';
      
      function create(initialState) {
        const client = new AWSAppSyncClient({
          url: AWS_AppSync.graphqlEndpoint,
          region: AWS_AppSync.region,
          auth: {
            type: AUTH_TYPE.API_KEY,
            apiKey: AWS_AppSync.apiKey,
      
            // Amazon Cognito Federated Identities using AWS Amplify
            //credentials: () => Auth.currentCredentials(),
      
            // Amazon Cognito user pools using AWS Amplify
            // type: AUTH_TYPE.AMAZON_COGNITO_USER_POOLS,
            // jwtToken: async () => (await Auth.currentSession()).getIdToken().getJwtToken(),
          },
          disableOffline: true,
        }, {
          cache: new InMemoryCache().restore(initialState || {}),
          ssrMode: true
        });
      
        return client;
      }
      ```
      
      dde20fc8
  16. 28 Jun, 2018 8 commits
  17. 27 Jun, 2018 2 commits
  18. 25 Jun, 2018 1 commit