function getNeedInfos()

in pages/dashboards/webext.js [75:89]


  function getNeedInfos() {
    const { data, error } = useSWR(
      needInfoURL,
      async () => {
        const result = await fetch(needInfoURL);
        return result.json();
      },
      { refreshInterval: 45000, fallbackData: props.needInfos },
    );
    return {
      data,
      isLoading: !error && !data,
      isError: error,
    };
  }