We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7490bf4 commit c38f35bCopy full SHA for c38f35b
packages/use-query-params/README.md
@@ -97,7 +97,7 @@ import React from 'react'
97
import useQueryParams from '@scaleway/use-query-params'
98
99
const Component = () => {
100
- const { queryParams, setQueryParams } = useQueryParams()
+ const { queryParams, replaceQueryParams } = useQueryParams()
101
const { user, company } = queryParams // user will be undefined and company will be "Scaleway"
102
const setUser = () => replaceQueryParams({ user: 'John' }, { push: true }) // user will be "John" and company will be undefined
103
// ?user=John
0 commit comments