Preparing search index...
The search index is not available
Lens SDK Reference
Lens SDK Reference
@lens-protocol/react-web
Core
IObservableStorageProvider
Interface IObservableStorageProvider
An observable storage provider that supports asynchronous storage of arbitrary data as strings
interface
IObservableStorageProvider
{
getItem
(
key
)
:
null
|
string
|
Promise
<
null
|
string
>
;
removeItem
(
key
)
:
void
|
Promise
<
string
>
|
Promise
<
void
>
;
setItem
(
key
,
value
)
:
string
|
void
|
Promise
<
string
>
|
Promise
<
void
>
;
subscribe
(
key
,
subscriber
)
:
StorageSubscription
;
}
Hierarchy (
view full
)
IStorageProvider
IObservableStorageProvider
Index
Methods
get
Item
remove
Item
set
Item
subscribe
Methods
get
Item
get
Item
(
key
)
:
null
|
string
|
Promise
<
null
|
string
>
Parameters
key
:
string
Returns
null
|
string
|
Promise
<
null
|
string
>
remove
Item
remove
Item
(
key
)
:
void
|
Promise
<
string
>
|
Promise
<
void
>
Parameters
key
:
string
Returns
void
|
Promise
<
string
>
|
Promise
<
void
>
set
Item
set
Item
(
key
,
value
)
:
string
|
void
|
Promise
<
string
>
|
Promise
<
void
>
Parameters
key
:
string
value
:
string
Returns
string
|
void
|
Promise
<
string
>
|
Promise
<
void
>
subscribe
subscribe
(
key
,
subscriber
)
:
StorageSubscription
Parameters
key
:
string
subscriber
:
StorageProviderSubscriber
Returns
StorageSubscription
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
get
Item
remove
Item
set
Item
subscribe
Lens SDK Reference
@lens-protocol/react-web - v2.3.1
@lens-protocol/react-native - v2.3.1
@lens-protocol/client - v2.3.1
An observable storage provider that supports asynchronous storage of arbitrary data as strings