Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: disable debug logging during preview #208

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Greenheart
Copy link
Owner

@Greenheart Greenheart commented Sep 9, 2023

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

}
)
})

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file has only changed because of formatting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prevent debug logging (and maybe other actions) when calculating the action indicators
1 participant