Skip to content

Instantly share code, notes, and snippets.

View kanzelm3's full-sized avatar

Joel Kanzelmeyer kanzelm3

  • PrizePicks
  • Atlanta, GA
View GitHub Profile
@kanzelm3
kanzelm3 / SketchSystems.spec
Last active November 9, 2018 16:37
Lazy Component Base
Lazy Component Base
Idle
load -> Loading
Loading
success -> Active
failure -> Error
Active
Error
@kanzelm3
kanzelm3 / SketchSystems.spec
Last active November 9, 2018 16:36
API Resource Base
API Resource Base
# A "guard" is a condition that must be met for a transition to occur. For example, in many cases an API resource cannot be loaded until a user has successfully authenticated. "Inactive" -> transition(`load`) [userIsAuthenticated] -> "Loading". Multiple transitions can be possible, given an order.
Idle
# If a "guard" is applied to the `load` action, it must be met before we can transition to "Loading"
load -> Loading
Loading
success -> Loaded
failure -> Error
Loaded
Error
user
unauthenticated
AUTHENTICATE -> authenticating
noErrors
authError
authenticating
AUTHENTICATE_SUCCESS -> authenticated
AUTHENTICATE_FAILURE -> authError
authenticated
# Signal
@kanzelm3
kanzelm3 / startup-to-enterprise.csv
Last active May 16, 2018 13:50
Pros/cons of moving from startup job to enterprise job
Pros Cons
Web development at global scale Leaving great team
Interesting challenges Slightly lower overall compensation
Team lead experience Stricter PTO policy
Improved processes Contract-to-perm
Networking opportunities Poor timing (baby due soon)
Better 401(k) matching Fewer luxuries (equipment, etc)
WFH 2 days/week Longer commute
import { AdSetCollectionEditor } from 'containers/adBuilder/adSetCollections/adSetCollectionEditor/adSetCollectionEditor';
// ... other imports etc
const mapStateToProps = (state, { params: { guid, adSetCollectionId } }) => {
// map library ad set collection props, below are the props that need to be provided to the AdSetCollectionEditor component
return {
isSaving,
isFetching,
isFetchingConfigs,
adSetCollection,