Greenheart / swipeforfuture.com

Solving the climate crisis, one swipe at a time 🌍🔥
https://swipeforfuture.com
GNU General Public License v3.0
6 stars 1 forks source link

Fix: disable debug logging during preview #208

Open Greenheart opened 12 months ago

Greenheart commented 12 months ago

Feedback appreciated! :)

This implementation might be improved. There could be a simpler solution, although this approach is pretty flexible.

The primary motivation behind the extra property disabledDuringPreview: boolean on the StateModifier<P> is to allow some StateExtensions (like debug) to only run conditionally.

fix #207