Skip to content

Instantly share code, notes, and snippets.

parse /
Created January 12, 2017 12:54 — forked from fuyi/
Model normalize/denormalize flow


  1. Define nested Schema
  2. Saga middleware detect a _REQUEST Action, which trigger a API request
  3. API request success trigger a _REQUEST_SUCCESS Action, api client get API response, map it with model to be normalized to, if the match found, normalizer flatten the nested JSON objects into flat entities structure, then send to store
  4. Redux store puts the normalized entities in place automatically
  5. ?? We need to manually update associated key to parent object, can this be automated?
  6. When passing data from Store to Container, we denormalize the objects by recursively looking into the key -> object mapping, reassemble the parent object. If any child object is missing, we report a error in console
parse / circle.yml
Created October 12, 2016 06:15 — forked from dtran320/circle.yml
Yarn on CircleCI
- curl -o- -L | bash
- yarn
post: # At least for me, it doesn't seem like `scripts` in `package.json` are being run, so you need to add them explicitly
- yarn run postinstall