Skip to content

Commit

Permalink
Merge pull request #113 from DDtMM/18.x
Browse files Browse the repository at this point in the history
Closes #111, Closes #110, Closes #108
  • Loading branch information
DDtMM authored Sep 15, 2024
2 parents c67373b + c072a15 commit d5bca72
Show file tree
Hide file tree
Showing 43 changed files with 5,041 additions and 4,775 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ Can be used with guard functions.
Creates a signal whose input value is immediately mapped to a different value based on a selector.
Either a value or multiple signals can be passed and used in the selector function.

### nestSignal

Creates a signal whose value changes after any nested signal's value updates no matter how deep the signal is nested.
It's value will be an object where every signal is replaced with its emitted value.

### reduceSignal

Creates a signal similar to `Array.reduce` or Rxjs's `scan` operator, using a reducer function to create a new value from the current and prior values.
Expand All @@ -106,6 +111,10 @@ This was directly inspired by Svelte's *tweened* function. When the signal valu

## Utilities

### inspect

Inspired by Svelte's $inspect rune, logs the resolved values of signals deeply nested in an object, array or signal.

### signalToIterator

Converts a signal to an AsyncIterator. Once created, changes are retained until elements are looped through at a later time.
Expand Down
Loading

0 comments on commit d5bca72

Please sign in to comment.