useViewModelCache

Source
import { useViewModelCache } from "@prestojs/viewmodel";
useViewModelCache<T,ResultType,U = any[]>(viewModel,selector,?args,?isEquals)
Params:
ParameterTypeDescription
*viewModelT
*selectorSelector
argsU
isEquals
Returns:ResultType