1import { useRef } from 'react';
3export default function usePreviousValue(value) {
4 const prev = useRef(null);
5 const curr = useRef(null);
7 if (prev.current !== curr.current) {
8 prev.current = curr.current;
11 if (curr.current !== value) {
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list