package arez.doc.examples.at_observe3;

import arez.annotations.ArezComponent;
import arez.annotations.Executor;
import arez.annotations.Observe;
import arez.annotations.OnDepsChange;

@ArezComponent
public abstract class CurrencyView
{
  // A read-only observer that renders
  @Observe( executor = Executor.EXTERNAL )
  public ReactNode render()
  {
    //Render component here
    //DOC ELIDE START
    return null;
    //DOC ELIDE END
  }

  @OnDepsChange
  void onRenderDepsChange()
  {
    // Schedule this component
    scheduleRender();
  }

  //DOC ELIDE START
  static class ReactNode
  {
  }

  private void scheduleRender()
  {
  }
  //DOC ELIDE END
}

@@ -142,46 +142,8 @@
 rve;
-%0Aimport arez.annotations.OnDepsChange;
 %0A%0A@A
@@ -402,24 +402,8 @@
  %7D%0A%0A
-  @OnDepsChange%0A
   vo

Remove unnecessary annotation