UNPKG

@bemedev/app-react

Version:
14 lines (11 loc) 326 B
import { dequal } from 'dequal'; function getSnapshot(service, ref) { const snapShot = service.getSnapshot(); const check = dequal(snapShot, ref.current); if (check) return ref.current; ref.current = snapShot; return ref.current; } export { getSnapshot }; //# sourceMappingURL=getSnapshot.js.map