Documentation / @etherfold/browser / keepStateOnIndexedDB
Function: keepStateOnIndexedDB()
keepStateOnIndexedDB<
ABI,ProcessResultType,ProcessorConfig>(name,remote?):object
Defined in: browser/src/storage/state/OnIndexedDB.ts:35
Type Parameters
ABI
ABI extends Abi
ProcessResultType
ProcessResultType
ProcessorConfig
ProcessorConfig
Parameters
name
string
remote?
string | IndexedStateLocation | IndexedStateLocation[]
Returns
object
clear
clear: (
context) =>Promise<void>
Parameters
context
ProcessorContext<ABI, ProcessorConfig>
Returns
Promise<void>
fetch
fetch: (
context) =>Promise<{lastSync:LastSync<ABI>;state:ProcessResultType; } |undefined>
Parameters
context
ProcessorContext<ABI, ProcessorConfig>
Returns
Promise<{ lastSync: LastSync<ABI>; state: ProcessResultType; } | undefined>
save
save: (
context,all) =>Promise<void>
Parameters
context
ProcessorContext<ABI, ProcessorConfig>
all
lastSync
LastSync<ABI>
state
ProcessResultType
Returns
Promise<void>