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 03505bd commit 0fcb693Copy full SHA for 0fcb693
packages/use-query-params/README.md
@@ -73,7 +73,7 @@ import React from 'react'
73
import useQueryParams from '@scaleway/use-query-params'
74
75
const Component = () => {
76
- const { queryParams, setQueryParams } = useQueryParams()
+ const { queryParams, replaceQueryParams } = useQueryParams()
77
const { user, company } = queryParams // user will be undefined and company will be "Scaleway"
78
const setUser = () => replaceQueryParams({ user: 'John' }) // user will be "John" and company will be undefined
79
// ?user=John
0 commit comments