Sample project aimed to show pros and cons of thunk decoration approach as also
as all opportunities of handy-thunk library.
git clone https://github.com/DScheglov/deco-thunks.git
cd deco-thunks
npm installgit checkout episode-1 # or episode-2
npm startLet's imagine that we need to develope UI-client for GitHub-api, displaying the User Profile Summary.
The project starts from MVP that allows to load fixed user profile (it's a mine) and passes through the several steps to on-fly loading feature.
| Tag | Description |
|---|---|
episode-1
|
Creating MVP with button Load that loads user profile. Live sample • 4ff1776 • loading-sample |
episode-2
|
Fixing Avatar blinking issue (without decorators) Live sample • 164f40f • connected-sample-1 |
episode-3
|
Using decorator connected to get avararUrl from the stateLive sample • dbb08fa • connected-sample-2 |
episode-4
|
Fixing Avatar blinking feature with `queue` compositor Live sample • 5a52a11 • queue-sample |
episode-5
|
Developing new feature: submit form with user name to load custom user profile Live sample • ec6c257 • loading-custom-user |
episode-6
|
Fixing issue with processing empty login Live sample • 9885d5c • onlyIf-sample |
episode-7
|
Fixing issue with fluding to console with error messages Live sample • 57fedc0 • fallback-sample |
episode-8
|
Preventing unneeded loading of existing users Live sample • 990140e • ensuring-user-sample |
episode-9
|
Emplementing on-fly loading Live sample • bb74e4f • postponed-sample |