Sha256: 80b648336b635e5cf4dfe85164ad3e0ad91beabf0830bbdc61accbad26c96756

Contents?: true

Size: 336 Bytes

Versions: 69

Compression:

Stored size: 336 Bytes

Contents

import { options } from 'preact';
import { initDevTools } from './devtools';

initDevTools();

/**
 * Display a custom label for a custom hook for the devtools panel
 * @type {<T>(value: T, name: string) => T}
 */
export function addHookName(value, name) {
	if (options._addHookName) {
		options._addHookName(name);
	}
	return value;
}

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
isomorfeus-preact-10.6.50 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.49 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.48 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.47 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.46 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.45 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.44 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.43 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.42 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.41 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.40 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.39 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.38 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.37 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.36 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.35 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.34 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.33 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.32 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.31 node_modules/preact/devtools/src/index.js