Skip to main content
Module

x/earthstar_replica_server/deps.ts>Earthstar.ReplicaCache#getLatestDocAtPath

An always-online Earthstar peer for your shares.
Latest
method Earthstar.ReplicaCache.prototype.getLatestDocAtPath
import { Earthstar } from "https://deno.land/x/earthstar_replica_server@4.0.0-beta.1/deps.ts";
const { ReplicaCache } = Earthstar;

Fetch latest version of a doc at a path from the cache. Returns an empty array in case of a cache miss, and queries the backing replica.

Parameters

path: Path
optional
format: FormatArg<F>

Returns

FormatDocType<F> | undefined