This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useCallback, useMemo } from "react"; | |
import { useLocation, useNavigate, useSearchParams } from "react-router-dom"; | |
const _getAll = (urlSearchParams: URLSearchParams) => { | |
const ret: Record<string, string[]> = {}; | |
for (const [k, v] of urlSearchParams.entries()) { | |
if (ret[k]) { | |
ret[k].push(v); | |
} else { | |
ret[k] = [v]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use client"; | |
import { todosStore } from "@/store/todoStore"; | |
import { useSyncExternalStore } from "react"; | |
export default function AAA() { | |
const todos = useSyncExternalStore( | |
todosStore.subscribe, | |
todosStore.getSnapshot | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getMeta__() { | |
return [...document.querySelectorAll('#section_menu > ul > li > a')].map( | |
(x) => { | |
const href = x.getAttribute('href'); | |
return href.split("'").filter((_, i) => i % 2 !== 0); | |
} | |
); | |
} | |
async function getMK__() { |
OlderNewer