{"ast":null,"code":"import { useMemo } from 'react';\nimport hash from 'stable-hash';\nexport function useStableMemo(factory, deps) {\n  return useMemo(factory, [hash(deps)]);\n}","map":{"version":3,"sources":["useStableMemo.ts"],"names":["useMemo","hash","useStableMemo","factory","deps"],"mappings":"AAAA,SAASA,OAAT,QAAwB,OAAxB;AAEA,OAAOC,IAAP,MAAiB,aAAjB;AAEA,OAAO,SAASC,aAAT,CAA0BC,OAA1B,EAA4CC,IAA5C,EAAyD;EAE9D,OAAOJ,OAAO,CAACG,OAAD,EAAU,CAACF,IAAI,CAACG,IAAD,CAAL,CAAV,CAAd;AACD","sourcesContent":["import { useMemo } from 'react';\n//@ts-ignore\nimport hash from 'stable-hash';\n\nexport function useStableMemo<T>(factory: () => T, deps: any[]) {\n  // eslint-disable-next-line react-hooks/exhaustive-deps\n  return useMemo(factory, [hash(deps)]);\n}\n"]},"metadata":{},"sourceType":"module"}