Skip to content

isDevtoolsAvailable() function

Home > @rimitive/core > isDevtoolsAvailable

Check if Rimitive DevTools extension is available in the current environment.

Signature:

export declare function isDevtoolsAvailable(): boolean;

Returns:

boolean

import { isDevtoolsAvailable, devtoolsProvider, createInstrumentation } from '@rimitive/core';
// Only enable instrumentation if DevTools is installed
const instrumentation = createInstrumentation({
enabled: isDevtoolsAvailable(),
providers: [devtoolsProvider()],
});