INNER CODE UNIT · TypeScript

performUpdate

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

  function performUpdate(boundStateUpdate?) {
    ({ data, objects } = client.read<T>(props.query, variables));

    Object.assign(boundState, boundStateUpdate);

    updater();
  }

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

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

    if (!boundState.loading) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…