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

Function start

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

trackMutationsFunction · 0.85

Tested by

no test coverage detected