项目作者: imdkva

项目描述 :
React suspense demo with mobx and inversify
高级语言: TypeScript
项目地址: git://github.com/imdkva/react-suspense-demo.git
创建时间: 2018-11-22T20:03:16Z
项目社区:https://github.com/imdkva/react-suspense-demo

开源协议:

下载


react-suspense-demo

Long story short

  • npm install
  • npm run start

Best view with Slow 3G Network enabled at devtools. You’ll see this (i hope):

  • Initial load (black) - static label at index.html shown while the main bundle is being loaded
  • Loading module (magenta) - indicator shown while module chunk dynamycally loaded
  • Loading data (blue) - fething some stuff

Don’t look at naive inversify usage, look at declarative manner instead.
Or keep going with SOMETHING_FETCH_REQUEST, SOMETHING_FETCH_SUCCESS, SOMETHING_FETCH_ERROR :)