Skip to content

Instantly share code, notes, and snippets.

@mikaelbr
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikaelbr/9020f6c1c3d1f24e737a to your computer and use it in GitHub Desktop.
Save mikaelbr/9020f6c1c3d1f24e737a to your computer and use it in GitHub Desktop.
Some referenceCursor mixin like this?
function referenceCursor (reference) {
return {
componentWillMount: function () {
reference.onChange(() => this.forceUpdate());
this.reference = reference;
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment