realar-project / realar

5 kB Advanced state manager for React
MIT License
44 stars 0 forks source link

article ideas: beautiful construction) #78

Closed betula closed 3 years ago

betula commented 3 years ago
export class Locale {
  @prop times = 0;
  @prop loaded = false;

  constructor() {
    signal
      .from(() => this.times)
      .flow.filter(() => this.loaded)
      .watch((times) => {

      });

    this.load();
  }
betula commented 3 years ago
export class Locale {
  @prop times = 0;
  @prop loaded = false;

  constructor() {
    signal
      .from(() => this.times)
      .filter.track(() => this.loaded)
      .to((times) => {

      });

    this.load();
  }

0.6.0 Found no use for this example