Remove the existentialist crisis
This commit is contained in:
parent
32c6119243
commit
f6c4a372a9
@ -38,7 +38,8 @@ const App: React.FC = () => {
|
|||||||
|
|
||||||
const [hash, setHash] = useState(location.hash);
|
const [hash, setHash] = useState(location.hash);
|
||||||
|
|
||||||
console.log(hash);
|
console.log(`Link for ${hash}`);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// Some hacky uri decoding
|
// Some hacky uri decoding
|
||||||
if (location.href.split('/').length > 4) {
|
if (location.href.split('/').length > 4) {
|
||||||
@ -46,7 +47,6 @@ const App: React.FC = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.onhashchange = () => setHash(location.hash);
|
window.onhashchange = () => setHash(location.hash);
|
||||||
console.log('why');
|
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
if (hash) {
|
if (hash) {
|
||||||
|
Loading…
Reference in New Issue
Block a user