Skip to content

Make reducer builder closure parameters explicit #1897

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 1 commit into from
Feb 9, 2023

Conversation

stephencelis
Copy link
Member

While this is a breaking change, its impact is likely pretty low, as trailing closure syntax should be overwhelmingly preferred in usage, and Xcode should provide automatic migration to the new parameter names:

  • Scope(...:child:)
  • forEach(...:element:)

The one exception that still is nameless is CombineReducers because it already includes the Reducers in its name, and a parameter name comes across redundant/verbose.

  - Scope(...:child:)
  - forEach(...:element:)

The one exception is `CombineReducers`, which already includes the
`Reducers` in its name.
@stephencelis stephencelis merged commit 5d490c7 into main Feb 9, 2023
@stephencelis stephencelis deleted the explicit-reducer-builder-parameters branch February 9, 2023 17:58
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