Skip to content

Shorthand syntax for "Auto" reactions #11

@aleclarson

Description

@aleclarson

"Reactions" are unobserved side effects in response to an observed computation.

The current way to do this:

auto(() => {
  // Observed computation here
  noto(() => {
    // Unobserved side effects here
  })
})

The proposed way to do this:

auto(
  () => {
    // Observed computation here
  },
  result => {
    // Unobserved side effects here
  }
)

The bonus (of course) being that you don't need to import noto.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions