idk
This commit is contained in:
@@ -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));
|
||||
};
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ import Store from '../store';
|
||||
|
||||
const usePage = fields => {
|
||||
useEffect(() => {
|
||||
console.log('Use page effect');
|
||||
Store.update(s => {
|
||||
s.currentPage = fields;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user