Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/earthstar/mod.browser.ts>ReplicaCache#getLatestDocAtPath

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
method ReplicaCache.prototype.getLatestDocAtPath
import { ReplicaCache } from "https://deno.land/x/earthstar@v10.0.0-alpha.2/mod.browser.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