From 13e61fe35f501a978d8446fe908bd4bd52a2f8e2 Mon Sep 17 00:00:00 2001 From: Brett Sun Date: Tue, 5 Jan 2016 17:27:35 +0100 Subject: [PATCH] Add query support for history --- js/history.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/history.js b/js/history.js index 903f2b73..4e8c03c7 100644 --- a/js/history.js +++ b/js/history.js @@ -1,6 +1,7 @@ 'use strict'; import useBasename from 'history/lib/useBasename'; +import useQueries from 'history/lib/useQueries'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import AppConstants from './constants/application_constants'; @@ -8,6 +9,6 @@ import AppConstants from './constants/application_constants'; // Remove the trailing slash if present let baseUrl = AppConstants.baseUrl.replace(/\/$/, ''); -export default useBasename(createBrowserHistory)({ +export default useBasename(useQueries(createBrowserHistory))({ basename: baseUrl });