mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-13 00:03:57 +02:00
chore: upgrade dependencies (#7138)
* chore: upgrade dependencies * reorg * update comment
This commit is contained in:
parent
e5bf59fd9b
commit
2a7820582c
27 changed files with 552 additions and 558 deletions
|
@ -31,9 +31,12 @@ function useContextValue(): ContextValue {
|
|||
const [tabGroupChoices, setChoices] = useState<{
|
||||
readonly [groupId: string]: string;
|
||||
}>({});
|
||||
const setChoiceSyncWithLocalStorage = useCallback((groupId, newChoice) => {
|
||||
createStorageSlot(`${TAB_CHOICE_PREFIX}${groupId}`).set(newChoice);
|
||||
}, []);
|
||||
const setChoiceSyncWithLocalStorage = useCallback(
|
||||
(groupId: string, newChoice: string) => {
|
||||
createStorageSlot(`${TAB_CHOICE_PREFIX}${groupId}`).set(newChoice);
|
||||
},
|
||||
[],
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue