Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function css(style: StyleObject) {
const className = driver(style, styletronEngine);
if (!(__BROWSER__ && __DEV__)) {
return className;
}
const {stack, message} = new Error("stacktrace source");
const nextDeps = [debugEngine, hydrating];
if (
prevDebugClassNameDeps.current[0] !== nextDeps[0] ||
prevDebugClassNameDeps.current[1] !== nextDeps[1]
) {
if (debugEngine && !hydrating) {
debugClassName.current = debugEngine.debug({
stackInfo: {stack, message},
stackIndex: 1,
});
}