useViewModelCache

Source
import { useViewModelCache } from "@prestojs/viewmodel";
useViewModelCache<T,ResultType,U = any[]>(viewModel,selector,?args,?isEquals)

Arguments:

ArgumentTypeDescription
*viewModelT
*selectorSelector
argsU
isEquals
Returns:ResultType