Skip to content

Commit c38f35b

Browse files
Update packages/use-query-params/README.md
Co-authored-by: Adrien Gibrat <[email protected]>
1 parent 7490bf4 commit c38f35b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/use-query-params/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ import React from 'react'
9797
import useQueryParams from '@scaleway/use-query-params'
9898

9999
const Component = () => {
100-
const { queryParams, setQueryParams } = useQueryParams()
100+
const { queryParams, replaceQueryParams } = useQueryParams()
101101
const { user, company } = queryParams // user will be undefined and company will be "Scaleway"
102102
const setUser = () => replaceQueryParams({ user: 'John' }, { push: true }) // user will be "John" and company will be undefined
103103
// ?user=John

0 commit comments

Comments
 (0)