INNER CODE UNIT · TypeScript

writeToCache

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

  function writeToCache(dataUpdate: T) {
    client.write(props.query, variables, dataUpdate);
  }

  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) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…