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.
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 theStateModifier<P>
is to allow someStateExtension
s (likedebug
) to only run conditionally.fix #207