import {classnames} from "../utils/classnames"; import {cacheComputed} from "../utils/cacheComputed"; import {MultipleClass} from "../type"; export function useClassCache MultipleClass>(fn: T) { return cacheComputed(() => classnames(fn()), (newValue, oldValue) => newValue !== oldValue); }