function checkForUpdate({
  bridge,
  element,
  refresh,
  store
}) {
  const {
    id
  } = element;
  const rendererID = store.getRendererIDForElement(id);

  if (rendererID != null) {
    inspectedElementMutableSource_inspectElement({
      bridge,
      element,
      path: null,
      rendererID: rendererID
    }).then(([inspectedElement, responseType]) => {
      if (responseType === 'full-data') {
        Object(react["startTransition"])(() => {
          const [key, value] = createCacheSeed(element, inspectedElement);
          refresh(key, value);
        });
      }
    }, // There isn't much to do about errors in this case,
    // but we should at least log them so they aren't silent.
    error => {
      console.error(error);
    });
  }
}
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.