Skip to content

Queue repeated virtual-dom `diff`ing and `patch`ing operations until the next repaint.

Notifications You must be signed in to change notification settings

digitaledgeit/vdom-render-queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vdom-render-queue

Queue repeated virtual-dom diffing and patching operations until the next repaint.

Installation

npm i --save vdom-render-queue

Usage

var h = require('virtual-dom/h');
var queue = require('vdom-render-queue');

var render = queue(document.body, function() {
  return h('h1', 'Hello World!');
});

render();
render();
render();

API

queue(el : HTMLElement, fn : function)

Create a queued render method.

render(force : bool)

Queue a render operation until the next repaint, or force the render operation to occur immediately.

License

The MIT License (MIT)

Copyright (c) 2015 James Newell

About

Queue repeated virtual-dom `diff`ing and `patch`ing operations until the next repaint.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published