INNER CODE UNIT · TypeScript

getState

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

  function getState() {
    return Object.assign({ client }, boundState, boundMutations, data);
  }

  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;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…