react-clear-cache
react-clear-cache copied to clipboard
TypeScript support problems
Both useClearCache hook and ClearCache component is returning type errors while using latest TypeScript version. This is being caused by defaultProps and useClearCache requiring all its props to be inputed in order to be accepted. The probable solution would be to encapsulate defaultProps and useClearCache with Partial<>
+1
+1