Skip to content

Instantly share code, notes, and snippets.

View hsrobflavorus's full-sized avatar

Robert Parker hsrobflavorus

View GitHub Profile
@wcjohnson
wcjohnson / observeSelector.coffee
Created March 11, 2016 17:44
observeSelector pattern
#
# Observable pattern for Redux selectors.
# Compares using _ deep equality.
# See: https://github.com/rackt/redux/issues/303#issuecomment-125184409
#
_ = require 'underscore'
deepEqualityTest = _.isEqual
objectEqualityTest = (a,b) -> a is b
@EmperorEarth
EmperorEarth / CREDIT
Last active February 1, 2016 17:05
React-Router's onEnter <> requireAuth read from Redux store
// Comment: http://stackoverflow.com/questions/33643290/how-do-i-get-a-hold-of-the-store-dispatch-in-react-router-onenter/34278483#34278483
// User: http://stackoverflow.com/users/184532/kjs3