INNER CODE UNIT · TypeScript

shouldNotifyPath

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

function shouldNotifyPath(
  subscribedKeys: ReadonlySet<string> | undefined,
  changedKey: string,
): boolean {
  if (!subscribedKeys) {
    return true;
  }

  for (const subscribedKey of subscribedKeys) {
    if (areRelatedPathKeys(subscribedKey, changedKey)) {
      return true;
    }
  }

  return false;
}

function getValueAtSegments<TValue>(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…