INNER CODE UNIT · TypeScript

load

grafoojs/grafoo · packages/bindings/src/index.ts:91

  function load(nextVariables?: Variables) {
    if (nextVariables) {
      variables = nextVariables;
    }

    if (!boundState.loading) {
      Object.assign(boundState, { loading: true });

      updater();
    }

    return client.execute<T>(props.query, variables).then(({ data, errors }) => {
      if (data) {
        lockListenUpdate = 1;

        writeToCache(data);
      }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…