File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 477477 }
478478
479479 /**
480- * Call to enable property accessors. This method must be called
481- * for any side effects of setting properties to occur. For elements,
482- * generally `connectedCallback` is a normal spot to do so.
483- * It is safe to call this method multiple times as it only turns
484- * on property accessors once.
480+ * Call to enable property accessor processing. Before this method is
481+ * called accessor values will be set but side effects are
482+ * queued. When called, any pending side effects occur immediately.
483+ * For elements, generally `connectedCallback` is a normal spot to do so.
484+ * It is safe to call this method multiple times as it only turns on
485+ * property accessors once.
485486 */
486487 _enableProperties ( ) {
487488 if ( ! this . __dataEnabled ) {
Original file line number Diff line number Diff line change 14321432 if ( ! this . __dataClientsInitialized ) {
14331433 this . __dataClientsInitialized = true ;
14341434 this . _readyClients ( ) ;
1435+ // Override point where accessors are turned on; importantly,
1436+ // this is after clients have fully readied, providing a guarantee
1437+ // that any property effects occur only after all clients are ready.
14351438 this . __dataInitialized = true ;
14361439 } else {
14371440 // Flush all clients
You can’t perform that action at this time.
0 commit comments