• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

react-boilerplate / react-boilerplate / 4079
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fix-component-mixUp-in-css-docs
DEFAULT BRANCH: master
Ran 08 Apr 2019 01:06PM UTC
Jobs 2
Files 82
Run time 46s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
4079

push

travis-ci

web-flow
[RFC] Hooks-based saga and reducer injectors (#2583)

## React Boilerplate

The saga and reducer injectors are normally used via HOCs.

The HOCs will still work with Hooks-based components but IMO, we can offer a nice alternative which doesn't pollute the render tree:

`useInjectSaga` and `useInjectReducer` hooks!

You can see this alternative in this PR's diff [here](https://github.com/react-boilerplate/react-boilerplate/pull/2583/files?w=1) (with the no whitespace option enabled).

We probably shouldn't remove the HOCs as the Hooks-based injectors won't work with Class components.

I do have one question about the InjectSaga HOC: It passes props to `injectSaga`. What's the purpose of this and is there any way around it?

This is more of an RFC than anything else. Looking for thoughts and feedback before completing the branch.

Cheers!

PS: `react-helmet@5` + `useEffect` in the same component = 🧨💥🔥 so I upgraded us to the 6.0.0 beta.

![image](https://user-images.githubusercontent.com/8948127/53353299-13340a80-392d-11e9-8230-4fb0e7992191.png)

101 of 106 branches covered (95.28%)

28 of 28 new or added lines in 8 files covered. (100.0%)

301 of 302 relevant lines covered (99.67%)

45.91 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4079.1 08 Apr 2019 01:07PM UTC 0
99.67
Travis Job 4079.1
2 4079.2 08 Apr 2019 01:06PM UTC 0
99.67
Travis Job 4079.2
Source Files on build 4079
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4079
  • 434a12a8 on github
  • Prev Build on dev (#4070)
  • Next Build on dev (#4082)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc