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 would be nice to access the this.state.storage object in the proxy object.
Why?
I've migrated to itty-durable from a standard DO. Itty-durable property proxy stores everything in a data property so I can
t access my existing data properties. The storage object is there but is not exposed via types so I have to ignore the type checker and do a run time migration.
I would be nice to access the
this.state.storage
object in the proxy object.Why?
I've migrated to itty-durable from a standard DO. Itty-durable property proxy stores everything in a
data
property so I cant access my existing data properties. The storage object is there but is not exposed via types so I have to ignore the type checker and do a run time migration.
Proposal
A) If storage is not meant to be exposed don't store everything in a single data object. Or
B) expose storage by typing state argument with
DurableObjectState
https://github.com/kwhitley/itty-durable/blob/v1.x/src/itty-durable.js#L20The text was updated successfully, but these errors were encountered: