MCPcopy Create free account
hub / github.com/effector/effector / removeFromNode

Function removeFromNode

src/effector/clearNode.ts:7–11  ·  view source on GitHub ↗
(currentNode: Node, targetNode: Node)

Source from the content-addressed store, hash-verified

5import {CROSSLINK} from './tag'
6
7const removeFromNode = (currentNode: Node, targetNode: Node) => {
8 removeItem(currentNode.next, targetNode)
9 removeItem(getOwners(currentNode), targetNode)
10 removeItem(getLinks(currentNode), targetNode)
11}
12/** These nodes should be cleared but dissalow clearing of any links */
13const nonPassableNodes = [
14 'on',

Callers 1

clearNodeNormalizedFunction · 0.85

Calls 3

removeItemFunction · 0.90
getOwnersFunction · 0.90
getLinksFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…