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
{{ message }}
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.
Would linking the props at construction and using prototypes be a valid workflow for this?
constzoneProps=newWeakMap();classZoneWithStorageextendsZone{constructor(options,props=Object.create(null)){super(options);// object we will be assigning props toletbase=null;letparent=this.parent;while(parent!==null){if(parentinstanceofZoneWithStorage){base=Object.create(zoneProps.get(parent));break;}}if(base===null){base={};}zoneProps.set(this,Object.assign(base,props));}get(key){constprops=zoneProps.get(this);if(keyinprops){returnprops[key];}// undefined}// maybe implement has(key) too if you want.}
Error handling and timer counting should probably do this.
The text was updated successfully, but these errors were encountered: