ryanflorence / react-router-relative-links

MIT License
78 stars 10 forks source link

Remove react router apply middleware peer dependency #5

Open perrin4869 opened 8 years ago

perrin4869 commented 8 years ago

Now that react-router ships with applyRouterMiddleware by default, maybe the peer dependency to react-router-apply-middleware should be removed?

perrin4869 commented 8 years ago

hm... I see that the code here is not built to work as a react-router middleware... I could send a PR to change that

jaimemarijke commented 7 years ago

I'm also running into a problem here - I'm using the applyRouterMiddleware function included with react-router by default to add the useScroll middleware. However, the useRelativeLinks middleware doesn't seem to work unless I use the applyRouterMiddleware function from react-router-apply-middleware. Any plans to consolidate the two?