mirror of
https://github.com/outline/outline.git
synced 2026-05-25 05:09:20 -05:00
9bc1788bc0
* Upgrade and virtualize table component * width in column def * container height * share query options * full page scroll * change z-index and remove shrink * non-modal menu
14 lines
273 B
TypeScript
14 lines
273 B
TypeScript
import React from "react";
|
|
import { useLocation } from "react-router-dom";
|
|
|
|
export default function useQuery() {
|
|
const location = useLocation();
|
|
|
|
const query = React.useMemo(
|
|
() => new URLSearchParams(location.search),
|
|
[location.search]
|
|
);
|
|
|
|
return query;
|
|
}
|