Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

DScheglov/deco-thunks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Decorative thunks

Sample project aimed to show pros and cons of thunk decoration approach as also as all opportunities of handy-thunk library.

Installation

git clone https://github.com/DScheglov/deco-thunks.git
cd deco-thunks
npm install

Running project

git checkout episode-1 # or episode-2
npm start

The Legend of the Project

Let'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 state
Live 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

About

Created with CodeSandbox

Resources

Stars

Watchers

Forks

Packages

No packages published