Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.babelrc
.gitignore
README.md
index.js
package.json
rollup.config.js

README.md

<±/> diffHTML Verify State Middleware

Stable Version: 1.0.0-beta.9

Asserts that a render properly updated the old Virtual Tree and the DOM. Will recursively search for inconsistencies, displays warnings unless debugging is enabled, then it throws errors instead.

verify-state

Installation
npm install diffhtml-middleware-verify-state
Example
import { use } from 'diffhtml';
import verifyState from 'diffhtml-middleware-verify-state';

// Throw when debug is truthy (when location.search has `?debug`)
use(verifyState({ debug: location.search.includes('debug') }));

This is not a very performant middleware, so please do not use this in production where performance is critical. Use in development.

You can’t perform that action at this time.