This commit is contained in:
Max Lynch
2021-01-05 16:32:10 -06:00
parent c4fc3367ba
commit 6a14c1c47a
4 changed files with 1 additions and 14 deletions
-1
View File
@@ -51,7 +51,6 @@ const useLocation = ({ base = '' } = {}) => {
// that's why we store the last pathname in a ref.
const checkForUpdates = () => {
const pathname = getCurrentPathname(base);
console.log('CHECK FOR UPDATES', pathname);
prevPath.current !== pathname && update((prevPath.current = pathname));
};
+1
View File
@@ -3,6 +3,7 @@ import Store from '../store';
const usePage = fields => {
useEffect(() => {
console.log('Use page effect');
Store.update(s => {
s.currentPage = fields;
});