feat: 🎸 Allow routes to load Google Cloud DICOM Stores in the Study List (#1069)

This commit is contained in:
ladeirarodolfo authored and Erik Ziegler committed 2019-10-25 14:49:48 +02:00
1 parent 3bbeb1c521
commit 21b586b08f
9 files changed
+194 -45

No files matched your search

@@ -0,0 +1,9 @@
import React, { useEffect, useRef } from 'react';
export default function usePrevious(value) {
const ref = useRef();
useEffect(() => {
ref.current = value;
}, [value]);
return ref.current;
}