interfaceUsePreviousOptions {/** * An `isEqual` function used to compare whether the previous value is equal to the current value, defaults to `Object.is`. * * @paramprevious The previous value. * @paramcurrent The current value. * @returns Returns `true` if equal, otherwise returns `false`. * * @defaultValue `Object.is` */isEqual?(previous: any, current: any): boolean/** * Whether to compare deeply, defaults to `false`. * * @defaultValue false */deep?: boolean}
if deep is true, isEqual will be ignored and the built-in deep comparison strategy will be used instead.