Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

From router.enhancer to router.connect #216

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

villesau
Copy link

@villesau villesau commented Jul 29, 2017

fixes #215

This PR:

  • Gets rid of stores matchRoute function
  • Refactors away from redux enhancer pattern
  • Renames enhancer to connect

As the stores matchRoute function is not used anywhere, it's possible to get rid of it. When getting rid of it, the enhancer actually anymore just connects to the store so it shouldn't anymore be in the enhancer chain.

@codecov
Copy link

codecov bot commented Jul 29, 2017

Codecov Report

Merging #216 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #216      +/-   ##
=========================================
- Coverage   98.41%   98.4%   -0.02%     
=========================================
  Files          19      19              
  Lines         253     250       -3     
=========================================
- Hits          249     246       -3     
  Misses          4       4
Impacted Files Coverage Δ
src/install.js 100% <ø> (ø) ⬆️
src/connector.js 92.85% <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 6aa3297...8d9bf2f. Read the comment docs.

@villesau villesau force-pushed the get-rid-of-enhancer-pattern branch from e7badbf to 8d9bf2f Compare July 29, 2017 00:29
@villesau villesau changed the title From enhancer to connect From router.enhancer to router.connect Jul 29, 2017
@gouegd
Copy link

gouegd commented Aug 28, 2017

That sounds good. I also suspect the enhancer is the reason the redux devtools don't work any more for me.

@jcrben
Copy link

jcrben commented Nov 13, 2017

@gouegd redux devtools seems to be working OK for me

@gouegd
Copy link

gouegd commented Nov 13, 2017

For me too now - or sometimes it gets stuck and I just reopen the debug tools. I don't think this comes from RFR at this point.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Store enhancer might not be needed
3 participants