Sha256: 85026cd77525e72ab81d3bf3125a20d458eac90629bb0a42830d46580428c229

Contents?: true

Size: 351 Bytes

Versions: 12

Compression:

Stored size: 351 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

12 entries across 12 versions & 1 rubygems

Version Path
isomorfeus-preact-10.6.14 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.13 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.12 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.11 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.10 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.9 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.8 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.7 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.6 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.5 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.4 node_modules/preact/devtools/src/index.js
isomorfeus-preact-10.6.3 node_modules/preact/devtools/src/index.js