Currently if an error occurs when inspecting a component, an error overlay is shown in the right hand side of DevTools along with a "dismiss" button to allow the inspection to be retried. However, currently this "retry" does not clear the entry from the cache and so it will immediately fail again if the same component is re-selected. We should clear the cache entry so that we actually retry when the modal is dismissed
wake();
      },
      error => {
        if (newRecord.status === Pending) {
          const rejectedRecord = ((newRecord: any): RejectedRecord);
          rejectedRecord.status = Rejected;
          rejectedRecord.value = `Could not inspect element with id "${element.id}"`;
          wake();
        }
      },
    );
    map.set(element, record);
  }
  const response = readRecord(record).value;
  return response;
}
type RefreshFunction = (
  seedKey: CacheSeedKey,
  cacheMap: InspectedElementMap,
) => void;
/**
 * Asks the backend for updated props and state from an expected element.
 * This method should never be called during render; call it from an effect or event handler.
 * This method will schedule an update if updated information is returned.
 */
export function checkForUpdate({
  bridge,
  element,
  refresh,
  store,