FormidableLabs / redux-little-router

A tiny router for Redux that lets the URL do the talking.
MIT License
1.04k stars 114 forks source link

Support replacing static routes #209

Closed tptee closed 7 years ago

tptee commented 7 years ago

Adds a replaceRoutes action creator that allows for changing the formerly static top-level routes. This'll allow for code splitting for people who still prefer top-level routing vs. dynamic Fragment matching.

codecov[bot] commented 7 years ago

Codecov Report

Merging #209 into master will increase coverage by 0.11%. The diff coverage is 97.72%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #209      +/-   ##
==========================================
+ Coverage    98.3%   98.41%   +0.11%     
==========================================
  Files          19       19              
  Lines         236      253      +17     
==========================================
+ Hits          232      249      +17     
  Misses          4        4
Impacted Files Coverage Δ
src/install.js 100% <ø> (ø) :arrow_up:
src/reducer.js 100% <100%> (ø) :arrow_up:
src/actions.js 100% <100%> (ø) :arrow_up:
src/types.js 100% <100%> (ø) :arrow_up:
src/enhancer.js 94.11% <94.11%> (+4.11%) :arrow_up:

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 7d308b0...3689ed3. Read the comment docs.