Last active
November 7, 2018 22:19
-
-
Save jongacnik/6ed3cea73e128a97361a5800fef6cac5 to your computer and use it in GitHub Desktop.
Choo component cache plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cache | |
exports.cache = function () { | |
return cache.apply(this, arguments) | |
} | |
exports.plugin = function (state, emitter) { | |
cache = state.cache | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using this in order to avoid passing state all over the place just to create components :)
Elsewhere in the app, perhaps in a view: