mattkrick / cashay

:moneybag: Relay for the rest of us :moneybag:
MIT License
453 stars 28 forks source link

Consider render cycle options #93

Open mattkrick opened 8 years ago

mattkrick commented 8 years ago

performance is already pretty dang good. BUT, if we make a react-cashay wrapper, we could encapsulate redux so we don't even call cashay unless a cashay action is called, essentially, it wouldn't respond to the redux listeners.

Alternatively, we could allow options to be a function (state, props) => options. This pales in comparison, but it'd still be nice not having to create an options object just to dump it by the wayside when we realize what we want is already cached.