Skip to content

Commit

Permalink
fix: toc lost bug when page is full reload (#1830)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript committed Aug 10, 2023
1 parent f184c73 commit f84b043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ const entryExports = {
export default function DumiContextWrapper() {
const outlet = useOutlet();
const [loading, setLoading] = useState(true);
const [loading, setLoading] = useState(false);
const prev = useRef(history.location.pathname);
useEffect(() => {
Expand Down

0 comments on commit f84b043

Please sign in to comment.