MCPcopy Create free account
hub / github.com/react-hook-form/react-hook-form / next

Function next

src/utils/createSubject.ts:20–24  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

18 let _observers: Observer<T>[] = [];
19
20 const next = (value: T) => {
21 for (const observer of _observers) {
22 observer.next && observer.next(value);
23 }
24 };
25
26 const subscribe = (observer: Observer<T>): Subscription => {
27 _observers.push(observer);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected