Packages

@preact/signals

2.11.4 · 27 Oct 2026MIT4.7M / weekRepositoryHomepagenpmAtom feed

Your version

2.11.0

4 Aug 2026Where it was published

2.11.4 is the newest release of 2.x.

In short

1 new

Release note

Minor Changes

  • Add support for passing functions as fallback to <For> for lazy instantiation.

    <For each={list} fallback={() => <p>No items</p>}>
      {item => <p>{item}</p>}
    </For>

    This avoids eager evaluation of the fallback when the collection has items, which matters when you're dealing with signals.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.