Skip to content

Instantly share code, notes, and snippets.

View OriginalYellow's full-sized avatar

Michael Joseph OriginalYellow

  • New Jersey
View GitHub Profile
// a vue.js mixin that uses this method to force an effecient rerender of the component(s) in response to resize events:
// https://michaelnthiessen.com/force-re-render/
import {
tap, debounceTime,
} from 'rxjs/operators';
import { fromEvent } from 'rxjs';
export default function rerender(...componentKeys) {