No, It's very common. We can bind local property with part of json which bind with local storage as example. So write to property will change json at local storage and affects to same property of another instance of same app. Example:
class Profile { @ $mol_mem store() { return new $mol_store_local({ profile: { name: 'Anon' } }) } @ $mol_mem name( next?: string ) { return this.store().sub( 'profile' ).value( 'name', next ) } } const profile = new Profile profile.name() // 'Anon' profile.name( 'Jin' ) // 'Jin' // restart app profile.name() // 'Jin' localStorage.getItem( 'profile', '{ "name": "Anon" }' )
Bi-directional bindings re-invented? Fair enough.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
No, It's very common. We can bind local property with part of json which bind with local storage as example. So write to property will change json at local storage and affects to same property of another instance of same app. Example:
Bi-directional bindings re-invented? Fair enough.