Inserter
Inserter is a modifier that lets you insert child node(s) on mount. When used with onMountInsert, it "immediately" reserves an insertion spot and then on every mount it inserts the node(s) into the same spot.
Inserter is a modifier that lets you insert child node(s) on mount. When used with onMountInsert, it "immediately" reserves an insertion spot and then on every mount it inserts the node(s) into the same spot.
Note: As a Modifier this is not idemponent, but overall it behaves as you would expect. See docs for more details.
Note: If you DO provide initialContext, its parentNode MUST always
be the same element
that you apply this Modifier to.
Value members
Concrete methods
Call this to get a copy of Inserter with a context locked to a certain element. We use this to "reserve a spot" for future nodes when a bind(c => inserter) modifier is initialized, as opposed to waiting until subscription is activated.
Call this to get a copy of Inserter with a context locked to a certain element. We use this to "reserve a spot" for future nodes when a bind(c => inserter) modifier is initialized, as opposed to waiting until subscription is activated.
The arrangement is admittedly a bit weird, but is required to build a smooth end user API.