Skip to content

Instantly share code, notes, and snippets.

View levity's full-sized avatar

Lawrence Wang levity

View GitHub Profile
// before: store/selectors/getPost.js
const getPost = ormCreateSelector(
state => state,
state => orm.session(state.orm),
(state, props) => props.id,
(state, session, id) => {
try {
const post = session.Post.get({id})
return {

Keybase proof

I hereby claim:

  • I am levity on github.
  • I am lwang (https://keybase.io/lwang) on keybase.
  • I have a public key ASCy3-ThBgbEoTuSBit5xQJxosWcpg_ljf-GRFHqlxSkogo

To claim this, I am signing this object:

0x217ba17fd9049fe37abd27222d96bafd833296844e56b07f7c809f7c236610ba