Skip to main content
Module

x/earthstar/src/entries/universal.ts>ReplicaCache#getLatestDocAtPath

Storage for private, distributed, offline-first applications.
Go to Latest
method ReplicaCache.prototype.getLatestDocAtPath
import { ReplicaCache } from "https://deno.land/x/earthstar@v10.2.2/src/entries/universal.ts";

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