Skip to content

@eightkk/vue-weave / core / cancelGraphExpansion

Function: cancelGraphExpansion() ​

cancelGraphExpansion<N, E>(state, ids, options?): GraphExpansionState<N, E>

Defined in: src/core/graphExpansion.ts:125

Forgets that nodes are being expanded (after a failed or aborted load); they return to the frontier. With options.key, forgets only their expansion for that key; without, only their unkeyed expansion.

Type Parameters ​

N ​

N extends object

E ​

E extends GraphEdge<unknown>

Parameters ​

state ​

GraphExpansionState<N, E>

ids ​

Iterable<string>

options? ​

GraphExpansionKeyOptions

Returns ​

GraphExpansionState<N, E>

Released under the MIT License.