UNPKG

react-firehooks

Version:

Lightweight dependency-free collection of React hooks for Firebase

10 lines (9 loc) 297 B
/** * @internal */ export function isQueryEqual(a, b) { const areBothUndefined = a === undefined && b === undefined; const areSameRef = a !== undefined && b !== undefined && a.isEqual(b); return areBothUndefined || areSameRef; } export const defaultConverter = (snap) => snap.val();