Skip to content

Commit

Permalink
Merge pull request #15 from 4Catalyzer/queryMiddleware
Browse files Browse the repository at this point in the history
Add query middleware in createBrowserRouter
  • Loading branch information
taion authored Oct 29, 2016
2 parents 1bf412c + 93bd0ea commit f5e274a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/createBrowserRouter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import BrowserProtocol from 'farce/lib/BrowserProtocol';
import queryMiddleware from 'farce/lib/queryMiddleware';
import React from 'react';

import createFarceRouter from './createFarceRouter';
Expand All @@ -9,6 +10,7 @@ export default function createBrowserRouter({ basename, ...options }) {
const FarceRouter = createFarceRouter({
...options,
historyProtocol: new BrowserProtocol({ basename }),
historyMiddlewares: [queryMiddleware],
});

const propTypes = {
Expand Down

0 comments on commit f5e274a

Please sign in to comment.