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#onCacheUpdated

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
method ReplicaCache.prototype.onCacheUpdated
import { ReplicaCache } from "https://deno.land/x/earthstar@v10.0.0-alpha.2/mod.browser.ts";

Subscribes to the cache, calling a callback when previously returned results can be considered stale. Returns a function for unsubscribing.

Parameters

callback: () => void

Returns

() => void