INNER CODE UNIT · TypeScript

currentRevision

margelo/react-native-runtimes · packages/state/src/index.ts:429

    currentRevision = Math.max(currentRevision, revision);
    listeners.forEach(({ listener, subtreeKeys }) => {
      if (shouldNotifyPath(subtreeKeys, subtreeKey)) {
        listener(currentState, currentRevision, subtreeKey);
      }
    });
  }

  function patchPath<TValue>(subtreeKey: string, subtreeState: TValue): TState {
    return setValueAtSegments(
      currentState,
      pathSegmentsFromKey(subtreeKey),
      subtreeState,
    );
  }

  function initialPathValue<TValue>(subtreeKey: string): TValue {
    return (

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…