getConnectionId = ({sender}: chrome$Port): number => {
  // If this is a devtool connection, there's no tab.id
  // But that ID is not required so we return 0
  return sender?.tab?.id ?? 0;
}
(c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.

Recoil DevTools browser extension.

@flow strict-local
@format
@oncall recoil