Created
March 11, 2016 21:18
-
-
Save iammerrick/1ce87988e4448b540e14 to your computer and use it in GitHub Desktop.
This file contains 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
export const load = (id) => { | |
load.buffer = load.buffer || []; | |
load.buffer.push(id); | |
return (dispatch, getState) => { | |
if (load.flush) clearTimeout(load.flush); | |
load.flush = setTimeout(() => { | |
}, 0); | |
}; | |
}; |
statianzo
commented
Mar 11, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment