File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2621,6 +2621,7 @@ class ComponentRegistry {
2621
2621
const interval = setInterval ( ( ) => {
2622
2622
const component = this . componentMapByElement . get ( element ) ;
2623
2623
if ( component ) {
2624
+ clearInterval ( interval ) ;
2624
2625
resolve ( component ) ;
2625
2626
}
2626
2627
count ++ ;
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ export default class {
25
25
const interval = setInterval ( ( ) => {
26
26
const component = this . componentMapByElement . get ( element ) ;
27
27
if ( component ) {
28
+ clearInterval ( interval ) ;
28
29
resolve ( component ) ;
29
30
}
30
31
count ++ ;
Original file line number Diff line number Diff line change @@ -771,13 +771,11 @@ controller and put it around (or attached to) your root component element:
771
771
toggleMode () {
772
772
// e.g. set some live property called "mode" on your component
773
773
this .component .set (' mode' , ' editing' );
774
- // you can also say
775
- this .component .mode = ' editing ' ;
774
+ // then, trigger a re-render to get the fresh HTML
775
+ this .component .render () ;
776
776
777
777
// or call an action
778
778
this .component .action (' save' , { arg1: ' value1' });
779
- // you can also say:
780
- this .component .save ({ arg1: ' value1' });
781
779
}
782
780
}
783
781
You can’t perform that action at this time.
0 commit comments