clear-react-router 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -193,10 +193,7 @@ var useHandleNavigation = ({ setLocation, routeList, context, revalidateCache })
|
|
|
193
193
|
to: newLocation.pathname
|
|
194
194
|
});
|
|
195
195
|
history.pushState(null, "", prevPathname.current);
|
|
196
|
-
} else
|
|
197
|
-
console.log(newLocation);
|
|
198
|
-
setNextLocationRef.current(newLocation);
|
|
199
|
-
}
|
|
196
|
+
} else setNextLocationRef.current(newLocation);
|
|
200
197
|
};
|
|
201
198
|
window.addEventListener("popstate", handler);
|
|
202
199
|
return () => window.removeEventListener("popstate", handler);
|