fix(lib/modules/finders/wait): use exports from parameter in cached waits
This commit is contained in:
parent
1c6da3a376
commit
ab41ec060f
1 changed files with 5 additions and 6 deletions
|
|
@ -108,16 +108,15 @@ export function waitForModules(
|
|||
1,
|
||||
)
|
||||
|
||||
const runCachedCallback = (id: Metro.ModuleID) => {
|
||||
const runCachedCallback = (
|
||||
id: Metro.ModuleID,
|
||||
exports: Metro.ModuleExports,
|
||||
) => {
|
||||
const flag = reg[id]
|
||||
|
||||
DEBUG_logWaitMatched(filter.key, id, flag, true)
|
||||
callback(
|
||||
exportsFromFilterResultFlag(
|
||||
flag,
|
||||
getInitializedModuleExports(id),
|
||||
options,
|
||||
),
|
||||
exportsFromFilterResultFlag(flag, exports, options),
|
||||
id,
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue