MCPcopy Create free account
hub / github.com/adobe/react-spectrum / start

Function start

packages/react-aria/src/tokenfield/useTokenField.ts:784–788  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

782 return useMemo(
783 () => ({
784 start() {
785 // Android sometimes fires two compositionstart events in a row, without a compositionend.
786 // In that case, reuse the existing tracker.
787 mutationTracker.current ||= trackMutations(ref.current!);
788 },
789 stop() {
790 mutationTracker.current?.();
791 mutationTracker.current = null;

Callers

nothing calls this directly

Calls 1

trackMutationsFunction · 0.85

Tested by

no test coverage detected