mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Decouple auth states from routing redux state
This commit is contained in:
@@ -30,10 +30,6 @@ describe('AuthFlow.functional', () => {
|
||||
flow.setStore(store);
|
||||
|
||||
navigate = function navigate(url) { // emulates router behaviour
|
||||
state.routing = state.routing || {};
|
||||
state.routing.location = state.routing.location || {};
|
||||
state.routing.location.pathname = url;
|
||||
|
||||
if (navigate.lastUrl !== url) {
|
||||
navigate.lastUrl = url;
|
||||
flow.handleRequest(url, navigate);
|
||||
|
||||
Reference in New Issue
Block a user