Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 345 Bytes

File metadata and controls

14 lines (11 loc) · 345 Bytes
@preact/signals minor
@preact/signals-react minor

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

<Show when={toggle} fallback={() => <p>I'm lazy</p>}>
	<p>foo</p>
</Show>

This avoids eager evaluation of whatever is passed to fallback which matters when you're dealing with signals.