This commit is contained in:
Josep M Sobrepere 2023-03-13 21:41:54 +01:00
parent 94dadcce1e
commit c0a790fd4f
2 changed files with 4 additions and 15 deletions

2
package-lock.json generated
View File

@ -1,5 +1,5 @@
{
"name": "re-rxjs",
"name": "react-rxjs",
"lockfileVersion": 2,
"requires": true,
"packages": {

View File

@ -158,9 +158,6 @@ export const subinstance = <
ctxFn: InstanceKeysCtxFn<KT, PI>,
) => {
const internalInnerParent = getInternals(parent)
const missingKeyIdx = internalParent.keysOrder.findIndex(
(val, idx) => internalInnerParent.keysOrder[idx] !== val,
)
const idsGenerator = detachedNode(
internalInnerParent.keysOrder,
@ -168,17 +165,9 @@ export const subinstance = <
() => false,
)
const idsNotificator: RunFn =
missingKeyIdx === -1
? (key, isActive, isParentLoaded, ids) => {
idsRun(
internalInnerParent,
key,
isActive && isParentLoaded ? ids : [],
)
}
: () => {}
idsGenerator.childRunners.push(idsNotificator)
idsGenerator.childRunners.push((key, isActive, isParentLoaded, ids) => {
idsRun(internalInnerParent, key, isActive && isParentLoaded ? ids : [])
})
}
internalParent.childRunners.push(result.run)