1. 17 7月, 2020 2 次提交
  2. 16 7月, 2020 3 次提交
  3. 15 7月, 2020 3 次提交
  4. 14 7月, 2020 3 次提交
    • L
      update/with-react-jss (#15156) · b088881a
      Lukas Polak 提交于
      Use hooks with jss
      b088881a
    • J
      Removed React import from pages/index.js (#15144) · cb96da13
      Jesse Jafa 提交于
      This should close https://github.com/vercel/next.js/issues/12964 but I'm leaving it up to one of the Tims (or if there are other maintainers) to close the issue as they see fit.
      cb96da13
    • A
      Updated useUser.js (#14974) · 583d1a0a
      abhik-b 提交于
      UPDATE I ADDED:
      setUser() 
      AFTER REMOVING cookie IN return STATEMENT OF logout ARROW FUNCTION
      
      There might be some cases where you do not want to redirect users after logout rather let them remain in that same page BUT let them know they have logged out by some UI changes .
      
      For that cases you might need the 'user' hook to update when users logs out .
      
      CURRENTLY the 'user' hook DOES NOT UPDATE AUTOMATICALLY when the user logs out . 
      PAGE REFRESH NEEDED to update that.
      
      So i propose that we might add setUser() to update user so that  user never returns true until user is set some value again
      583d1a0a
  5. 13 7月, 2020 2 次提交
  6. 11 7月, 2020 2 次提交
  7. 10 7月, 2020 1 次提交
  8. 09 7月, 2020 1 次提交
    • J
      [cms-wordpress] Nest one-to-one relationships (#15007) · f53ee47b
      JP Lew 提交于
      There is a bug in the cms-wordpress example due to a Wordpress plugin dependency. After running `npm install`, then either `npm run dev` or `npm run build`, the following errors appear in the console:
      
      ```shell
      > cms-wordpress@1.0.0 dev /Users/jplew/Sites/projects/next.js/examples/cms-wordpress
      > next
      
      ready - started server on http://localhost:3000
      info  - Loaded env from /Users/jplew/Sites/projects/next.js/examples/cms-wordpress/.env.local
      event - compiled successfully
      event - build page: /
      wait  - compiling...
      event - build page: /next/dist/pages/_error
      event - compiled successfully
      [
        {
          message: 'Cannot query field "name" on type "NodeWithAuthorToUserConnectionEdge". Did you mean "node"?',
          extensions: { category: 'graphql' },
          locations: [ [Object] ]
        },
        {
          message: 'Cannot query field "firstName" on type "NodeWithAuthorToUserConnectionEdge".',
          extensions: { category: 'graphql' },
          locations: [ [Object] ]
        },
        {
          message: 'Cannot query field "lastName" on type "NodeWithAuthorToUserConnectionEdge".',
          extensions: { category: 'graphql' },
          locations: [ [Object] ]
        },
        {
          message: 'Cannot query field "avatar" on type "NodeWithAuthorToUserConnectionEdge".',
          extensions: { category: 'graphql' },
          locations: [ [Object] ]
        }
      ]
      Error: Failed to fetch API
          at fetchAPI (webpack-internal:///./lib/api.js:31:11)
      ```
      
      The reason for this is `wp-graphql` released version v0.10.0 ten days ago which introduced a number of breaking changes (https://github.com/wp-graphql/wp-graphql/releases/tag/v0.10.0). Specifically, this is the change that breaks the current example:
      
      > - One to One relationships are now nested. For example post.author and post.featuredImage now return an edge/node instead of the node directly.
      
      More info about this change can be found here: https://github.com/wp-graphql/wp-graphql/issues/347#issuecomment-639071772
      
      After my changes, `npm run dev` and `npm run build` succeed without errors.
      f53ee47b
  9. 08 7月, 2020 9 次提交
  10. 07 7月, 2020 3 次提交
  11. 01 7月, 2020 3 次提交
  12. 30 6月, 2020 5 次提交
  13. 28 6月, 2020 2 次提交
  14. 27 6月, 2020 1 次提交