Skip to main content

FeatureSelectionControls

What the feature selection contract needs besides the store itself.

This is an interface exported by @mapcairn/core/contracts, checked against version 0.2.0.

Signature​

import type { FeatureSelectionControls } from "@mapcairn/core/contracts";

interface FeatureSelectionControls

Methods​

replaceExternally​

replaceExternally?(refs: readonly FeatureRef[]): void;

Changes the set from outside the ui, as a host does when it hydrates or restores a set after a failed save: no limit applies, and subscribers are told once if the set changed. Optional: the hydration cases are skipped for a store that has no such way in.

  • refs (readonly FeatureRef[])

See also​

Source: packages/core/src/contracts/featureSelection.contract.ts:10