Open pospi opened 1 year ago
Hum... I don't really know what's really happening... I assume you meant going this.appletConfig = new StoreSubscriber(this, this.sensemakerStore.appletConfig())
, since that accessor is a function that returns a readable? If that's the case, I would need more information and the error message to really know what's the problem.
At least, I think that's what is happening.
Bumped into this working with the Neighbourhoods Sensemaker store, which is an instance object with Svelte store accessors as fields:
In my component I want to be able to simple declare
this.appletConfig = new StoreSubscriber(this, this.sensemakerStore.appletConfig)
but this causes a private property access error to SensemakerStore; instead the fields have to be manually bound likethis.appletConfig = new StoreSubscriber(this, this.sensemakerStore.appletConfig.bind(this.sensemakerStore))
.