Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Upcoming updates November 2021 (done) #163

Open
Assignees
Labels
Ready to test - AsyncIssue is implemented and ready for testing. PR is merged.
@tima101

Description

Move changes to book/10-end, decided against creating Chapter 11:

  • retire inefficient generateNumberSlug and generateSlug - either use _id as slug or generate unique values with Math.random (Chapter 11, explain motivation)
  • bodyParser.raw to express.raw for Stripe's webhook (change content inside chapter in question)
  • GA events example (Chapter 11: screenshots from GA dashboard)



  • node v14.18.1
  • next v12.0.3 (webpack v5, add two plugins for babel, react and react-dom v17.0.2)
  • @mui/material v5.0.6 (breaking changes)
  • retire dotenv for app; update next.config.js and update names for environmental variables; update README file

Notes:

  • imports:
    npx @mui/codemod v5.0.0/preset-safe pages
    npx @mui/codemod v5.0.0/preset-safe components
    
  • MyApp, MyDocument
  • Select, event.stopPropagation()
  • removed <InputLabel>Notification type</InputLabel>
  • theme, createTheme, type -> mode
  • versions for mobx, mobx-react
  • version of eslint in api
  • upgraded versions for socket.io-client, socket.io, @types/socket.io, remove @types/socket.io-client, update socket.ts, update store/index.ts


  • explain firing of MyDocument.render and MyApp.getInitialProps:
console.log('MyDocument.render');
console.log('MyApp.getInitialProps');

explain firing of lifecycle methods:

console.log('DiscussionPageComp.componentDidMount');
console.log('before condition DiscussionPageComp.componentDidUpdate');
console.log('inside condition DiscussionPageComp.componentDidUpdate');
console.log('DiscussionPageComp.componentWillUnmount');

explain firing of useEffect hook:

console.log('useEffect 1 for DiscussionPageCompFunctional');
console.log('useEffect 2 for DiscussionPageCompFunctional');
  • move changes from book/11-end to book/10-end; remove book/11-begin and book/11-end
  • replace codebase inside saas with codebase inside book/10-end
  • review instructions for Node.js 14 running on 64bit Amazon Linux 2:
    • engines in package.json
    • build locally before deploy; only start script runs from package.json at AWS EB
    • review config.yml
    • review names of env vars
  • redeploy demo (https://saas-app.async-await.com and https://saas-api.async-await.com)

Metadata

Metadata

Assignees

Labels

Ready to test - AsyncIssue is implemented and ready for testing. PR is merged.

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /