aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/Feeds.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/ui/Feeds.js')
-rw-r--r--vnext/src/ui/Feeds.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/vnext/src/ui/Feeds.js b/vnext/src/ui/Feeds.js
index bd69155f..129be2de 100644
--- a/vnext/src/ui/Feeds.js
+++ b/vnext/src/ui/Feeds.js
@@ -45,7 +45,7 @@ function RequireAuth({ children }) {
*
*/
export function Discover() {
- const search = useSearchParams();
+ const [search] = useSearchParams();
const query = {
baseUrl: '/api/messages',
search: search,
@@ -84,7 +84,7 @@ export function Discussions() {
*/
export function Blog() {
const { user } = useParams();
- const params = useSearchParams();
+ const [params] = useSearchParams();
const search = {
...params,
uname: user
@@ -167,7 +167,7 @@ function Feed({ query }) {
tag: ''
});
const [loading, setLoading] = useState(true);
- const filter = useSearchParams();
+ const [filter] = useSearchParams();
useEffect(() => {
setLoading(true);
let getPageParam = (pageParam, lastMessage, /** @type { URLSearchParams } */ filterParams) => {
@@ -202,7 +202,7 @@ function Feed({ query }) {
};
});
});
- }, [location.search, query, filter]);
+ }, [query, filter]);
return (state.msgs.length > 0 ? (
<div className="msgs">
{