{ "version": 3, "sources": ["../../../packages/shared/bz-utilities/hooks/autorun/index.tsx"], "sourcesContent": ["import React from 'react';\n\nimport { autorun } from 'mobx';\nimport type { IAutorunOptions, IReactionPublic } from 'mobx';\n\nconst useAutorun = function (\n reaction: (r: IReactionPublic) => any,\n deps: React.DependencyList,\n options?: IAutorunOptions\n): void {\n React.useEffect(() => autorun(reaction, options), deps);\n};\n\nexport default useAutorun;\n"], "mappings": "0JAAAA,IAAAC,IAAA,IAAAC,EAAkB,OAKlB,IAAMC,EAAaC,EAAA,SACjBC,EACAC,EACAC,EACM,CACN,EAAAC,QAAM,UAAU,IAAMC,EAAQJ,EAAUE,CAAO,EAAGD,CAAI,CACxD,EANmB,cAQZI,EAAQP", "names": ["init_virtual_process_polyfill", "init_buffer", "import_react", "useAutorun", "__name", "reaction", "deps", "options", "React", "autorun", "autorun_default"] }