Skip to content

Re-enable _printChanges() for previews #1917

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

Merged
merged 2 commits into from
Feb 17, 2023

Conversation

tgrapperon
Copy link
Contributor

For optimization reasons, Reducer._printChanges()'s isn't generating output for Xcode previews (#1625).
The new beta version of Xcode 14.3 now displays Swift.print(…) messages in the console under the "previews" tab, so we should probably revert the changes from #1625 and re-enable _printChanges()'s output in preview context.

I don't think there is a way to detect when previews are reloaded, so the output of successive reloads concatenates. It's better than nothing I guess, but this can maybe be improved in a subsequent PR.

Copy link
Member

@stephencelis stephencelis left a comment

Choose a reason for hiding this comment

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

Nice!

@stephencelis stephencelis merged commit 56a1e4b into pointfreeco:main Feb 17, 2023
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.

2 participants