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

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

Build:
Build:
LAST BUILD BRANCH: fix-component-mixUp-in-css-docs
DEFAULT BRANCH: master
Ran 08 Apr 2019 01:07PM UTC
Files 82
Run time 5s
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

08 Apr 2019 01:03PM UTC coverage: 99.669% (+0.01%) from 99.658%
4079.1

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%)

301 of 302 relevant lines covered (99.67%)

22.96 hits per line

Source Files on job 4079.1
  • Tree
  • List 0
  • Changed 19
  • Source Changed 8
  • Coverage Changed 19
Coverage โˆ† File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 3862
  • Travis Job 4079.1
  • 434a12a8 on github
  • Prev Job for on dev (#4070.1)
  • Next Job for on dev (#4082.1)
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