Skip to main content
Module

x/earthstar/mod.ts>ReplicaCache#getLatestDocAtPath

A specification and Javascript library for building online tools you can truly call your own.
Go to Latest
method ReplicaCache.prototype.getLatestDocAtPath
import { ReplicaCache } from "https://deno.land/x/earthstar@v9.3.3/mod.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.

Returns

Doc | undefined