Skip to content

Conversation

@netspencer
Copy link
Contributor

In my app, I needed to be able to dispatch an array of actions. Array's cannot currently be converted into lists of arguments in the Swift language. So we must refactor the code to work the other way:

  • the core logic lives inside the function that accepts an array of arguments. The function that takes the variadic list of actions then calls the array implementation.

@Qata
Copy link
Member

Qata commented Jan 28, 2019

Thanks for the PR, this slipped my mind but it’s how I usually design so it’s a welcome improvement!

@Qata Qata merged commit 0de1a3f into ReSwift:master Jan 28, 2019
@peril-reswift
Copy link

peril-reswift bot commented Jan 28, 2019

@netspencer Thanks a lot for contributing to ReSwift! We've invited you to join
the ReSwift GitHub organization – no pressure to accept! If you'd like more
information on what that means, check out our contributor guidelines.

Generated by 🚫 dangerJS

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