You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now we only support to watch the value of the local storage. But can't watch the change of the metadata of local storage variable.
What are the alternatives?
Now we have to add $ at the end of the KEY local:someKey$ to watch its metadata. But in the future, the underline implementation of the meta may change, and may should not add $.
This is the work around of my code
// Add $ to the key to get the meta key for LAST_SYNCED_CONFIG_STORAGE_KEYconstmetaKey=`local:${LAST_SYNCED_CONFIG_STORAGE_KEY}$`constunwatch=storage.watch<LastSyncedConfigMeta>(metaKey,(_,newMeta)=>{constmeta=newMetasetAtom(meta?.lastSyncedAt??null)})
Additional context
Add any other context or screenshots about the feature request here.
Activity
[-]support watch meta change in storage[/-][+][FEAT] support watch meta change in storage[/+]aklinker1 commentedon Apr 13, 2026
Sure, I'm down to add a
watchMetafunction to storage and storage items