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

Presenter::intercept can have multiple handlers #479

Merged
merged 3 commits into from Feb 20, 2018

Conversation

nhunzaker
Copy link
Contributor

In order to achieve consistency with effects and domains, the
presenter intercept method can now accept an array of handlers.

In order to achieve consistency with effects and domains, the
presenter intercept method can now accept an array of handlers.
class Test extends Presenter {
intercept() {
return {
test: [one, two]
Copy link
Member

Choose a reason for hiding this comment

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

👏

@efatsi
Copy link
Contributor

efatsi commented Feb 20, 2018

looks great 👍

@nhunzaker
Copy link
Contributor Author

Thanks guys!

@codecov-io
Copy link

codecov-io commented Feb 20, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@b136cee). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #479   +/-   ##
=========================================
  Coverage          ?   97.65%           
=========================================
  Files             ?       29           
  Lines             ?      681           
  Branches          ?      143           
=========================================
  Hits              ?      665           
  Misses            ?       13           
  Partials          ?        3
Impacted Files Coverage Δ
packages/microcosm-dom/src/utilities.js 100% <100%> (ø)
packages/microcosm-dom/src/intercept.js 100% <100%> (ø)
packages/microcosm-dom/src/presenter.js 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b136cee...9f77ad4. Read the comment docs.

@nhunzaker nhunzaker merged commit 117e9de into master Feb 20, 2018
@nhunzaker nhunzaker deleted the multiple-presenter-handlers branch February 20, 2018 20:11
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.

None yet

4 participants