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
I noticed the storage key in useStorage is not a MaybeRefOrGetter but rather a string. Is this by design?
My use case for it being reactive is I have an instance where the key depends on a dynamic route parameter (e.g., /resource/:id), and switching between pages does not unmount the component. I could add a key to the page to remount it on navigation, but to me it would make sense to make the key a getter or computed value.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I noticed the storage key in useStorage is not a
MaybeRefOrGetter
but rather a string. Is this by design?My use case for it being reactive is I have an instance where the key depends on a dynamic route parameter (e.g.,
/resource/:id
), and switching between pages does not unmount the component. I could add a key to the page to remount it on navigation, but to me it would make sense to make the key a getter or computed value.Beta Was this translation helpful? Give feedback.
All reactions