Skip to content

Commit

Permalink
Add query middleware in createBrowserRouter
Browse files Browse the repository at this point in the history
  • Loading branch information
taion committed Oct 29, 2016
1 parent 1bf412c commit 93bd0ea
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 93bd0ea

Please sign in to comment.