mirror of
https://github.com/re-rxjs/react-rxjs.git
synced 2025-12-08 18:01:51 +00:00
WIP
This commit is contained in:
parent
94dadcce1e
commit
c0a790fd4f
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "re-rxjs",
|
||||
"name": "react-rxjs",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user