viridia / quill_v1

Reactive UI framework for Bevy game engine
MIT License
60 stars 7 forks source link

Add 'fallback' option for For loops. #13

Open viridia opened 9 months ago

viridia commented 9 months ago

In Solid, a "fallback" is a view which is rendered when a For node is passed an array of zero length. This is an extremely useful feature, as it allows you to render messages such as "No results found" without needing a separate if-statement.

This could be done via a method on the For node, such as .fallback(view).