From ca1816481aac943c45a761c7dc685279a490e6d6 Mon Sep 17 00:00:00 2001 From: Julien Sagot <1826552+sagotch@users.noreply.github.com> Date: Tue, 9 May 2023 11:19:37 +0200 Subject: [PATCH] Fix typo in use-query-params/README.md --- packages/use-query-params/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/use-query-params/README.md b/packages/use-query-params/README.md index de2c905e7..313bbbf3c 100644 --- a/packages/use-query-params/README.md +++ b/packages/use-query-params/README.md @@ -73,7 +73,7 @@ import React from 'react' import useQueryParams from '@scaleway/use-query-params' const Component = () => { - const { queryParams, setQueryParams } = useQueryParams() + const { queryParams, replaceQueryParams } = useQueryParams() const { user, company } = queryParams // user will be undefined and company will be "Scaleway" const setUser = () => replaceQueryParams({ user: 'John' }) // user will be "John" and company will be undefined // ?user=John