We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CacheMap
1 parent 63b3b39 commit 83e4ffcCopy full SHA for 83e4ffc
src/hooks/useMobileTouchMove.ts
@@ -16,6 +16,7 @@ export default function useMobileTouchMove(
16
// Smooth scroll
17
const intervalRef = useRef(null);
18
19
+ /* eslint-disable prefer-const */
20
let cleanUpEvents: () => void;
21
22
const onTouchMove = (e: TouchEvent) => {
src/utils/CacheMap.ts
@@ -5,8 +5,7 @@ class CacheMap {
5
maps: Record<string, number>;
6
7
constructor() {
8
- this.maps = {};
9
- this.maps.prototype = null;
+ this.maps = Object.create(null);
10
}
11
12
set(key: React.ReactText, value: number) {
0 commit comments