hook-use-previous
ReactJS Hook to get previous variable value
npm i hook-use-previous
import usePrevious from 'hook-use-previous';
...
const wasBranchId = usePrevious(branchId);
...
ReactJS Hook to get previous variable value
npm i hook-use-previous
import usePrevious from 'hook-use-previous';
...
const wasBranchId = usePrevious(branchId);
...