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

Function start

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

Source from the content-addressed store, hash-verified

926 return useMemo(
927 () => ({
928 start() {
929 // Android sometimes fires two compositionstart events in a row, without a compositionend.
930 // In that case, reuse the existing tracker.
931 mutationTracker.current ||= trackMutations(ref.current!);
932 },
933 stop() {
934 mutationTracker.current?.();
935 mutationTracker.current = null;

Callers

nothing calls this directly

Calls 1

trackMutationsFunction · 0.85

Tested by

no test coverage detected